Re: [FlexJS][Maven] filtering variables in index html template file by maven resources plugin (was Re: [FlexJS] index html template vars)

2016-12-05 Thread Alex Harui
On 12/5/16, 8:50 AM, "Christofer Dutz" wrote: >Or define the width and height in the build and inject the values as >defines? >Would reduce it back to one place ☺ It would probably still need to be set on the MXML tag. >Chris > >Am 05.12.16, 17:05 schrieb "Alex Harui" : > >The interes

Re: [FlexJS][Maven] filtering variables in index html template file by maven resources plugin (was Re: [FlexJS] index html template vars)

2016-12-05 Thread Christofer Dutz
Or define the width and height in the build and inject the values as defines? Would reduce it back to one place ☺ Chris Am 05.12.16, 17:05 schrieb "Alex Harui" : The interesting question here is whether the compiler should somehow help the generation of the html wrapper since the compile

Re: [FlexJS][Maven] filtering variables in index html template file by maven resources plugin (was Re: [FlexJS] index html template vars)

2016-12-05 Thread Alex Harui
The interesting question here is whether the compiler should somehow help the generation of the html wrapper since the compiler knows some information that the developer would otherwise have to duplicate, such as the width, height, and potentially the title and maybe other properties. These are MXM

Re: [FlexJS][Maven] filtering variables in index html template file by maven resources plugin (was Re: [FlexJS] index html template vars)

2016-12-05 Thread Carlos Rovira
We should think if compiler should make the task of process the html...maybe this is a task for build systems (maven, ant,...) Since there's much to do, maybe we could left this issue for later since right now the problem is solved... 2016-12-05 9:26 GMT+01:00 Christofer Dutz : > Hi Guys, > > wel

Re: [FlexJS][Maven] filtering variables in index html template file by maven resources plugin (was Re: [FlexJS] index html template vars)

2016-12-05 Thread Christofer Dutz
Hi Guys, well in general „Yes“ the order in which things are done in Maven is: - Generate Resources - Process Resources - Compile Unfortunately the falcon compiler also does some sort of generate and process within the compile phase. It would be great if we could split this up so we could have

Re: [FlexJS][Maven] filtering variables in index html template file by maven resources plugin (was Re: [FlexJS] index html template vars)

2016-12-01 Thread Carlos Rovira
That make the trick! Thanks Alex! :) Now MDLExample could be customized with this: https://getmdl.io/customize/index.html using the two vars is pom.xml suited for that task :) 2016-12-01 23:51 GMT+01:00 Alex Harui : > > > On 12/1/16, 2:32 PM, "carlos.rov...@gmail.com on behalf of Carlos Rovira" >

Re: [FlexJS][Maven] filtering variables in index html template file by maven resources plugin (was Re: [FlexJS] index html template vars)

2016-12-01 Thread Alex Harui
On 12/1/16, 2:32 PM, "carlos.rov...@gmail.com on behalf of Carlos Rovira" wrote: >Ok, > >so let say I have > >${basedir}/src/main/resources/mdl-js-index-template.htmlmlTemplate> > >so "mdl-js-index-template.html" is the file processed by the compiler, >that >file does not have the vars "primary

Re: [FlexJS][Maven] filtering variables in index html template file by maven resources plugin (was Re: [FlexJS] index html template vars)

2016-12-01 Thread Carlos Rovira
Ok, so let say I have ${basedir}/src/main/resources/mdl-js-index-template.html so "mdl-js-index-template.html" is the file processed by the compiler, that file does not have the vars "primary" and "accent" inside (since it will be overridden) and so this will not be used. If I create another fi

Re: [FlexJS][Maven] filtering variables in index html template file by maven resources plugin (was Re: [FlexJS] index html template vars)

2016-12-01 Thread Alex Harui
This was discussed earlier in another thread. IIRC Chris says resources processing before compiling is the default in Maven and we shouldn't change it. I think you have the options of: 1) using -html-output-filename to tell the compiler to generate a different filename that won't bash the one yo

[FlexJS][Maven] filtering variables in index html template file by maven resources plugin (was Re: [FlexJS] index html template vars)

2016-12-01 Thread Carlos Rovira
I can confirm that compiler is overriding maven changes If I use mvn clean process-resources I can see the file with the right changes, and I think this is what we need. So how could we change the order of this (first compiler, then process resources)? Some thoughts? El 1 de diciembre de 2

Re: [FlexJS] index html template vars

2016-11-30 Thread Alex Harui
The compiler generates a new index.html. If the resource plugin runs first, then yes, the index.html will be overwritten, although if you use the resource plugin to generate the template, then the compiler should just fill in its part and not touch the stuff you added. On 11/30/16, 2:57 PM, "carl

Re: [FlexJS] index html template vars

2016-11-30 Thread Carlos Rovira
Hi Chris, I just tried with maven using the following link https://maven.apache.org/plugins/maven-resources-plugin/examples/filter.html in pom.xml insert: indigo pink added filtering true here: src/main/resources true in mdl-js-index-template.html use the v

Re: [FlexJS] index html template vars

2016-11-30 Thread Christofer Dutz
When using the maven resource plugin it should be relatively easy to do this ... Chris Am 29.11.16, 23:48 schrieb "carlos.rov...@gmail.com im Auftrag von Carlos Rovira" : Can I create a custom var in html template? if so how? for example, I'd like to add to my html ${color} (just l

Re: [FlexJS] index html template vars

2016-11-30 Thread Alex Harui
On 11/30/16, 1:52 AM, "carlos.rov...@gmail.com on behalf of Carlos Rovira" wrote: >Are you saying we could make a bead to decorate the index.html...don't >understand exactly the proposed solution. I thought beads was something >inside the framework, nothing to do in the html template... A bead

Re: [FlexJS] index html template vars

2016-11-30 Thread Carlos Rovira
Are you saying we could make a bead to decorate the index.html...don't understand exactly the proposed solution. I thought beads was something inside the framework, nothing to do in the html template... btw, I think if we could create our own vars for html template will be very useful so people co

Re: [FlexJS] index html template vars

2016-11-29 Thread Alex Harui
On 11/29/16, 10:55 PM, "carlos.rov...@gmail.com on behalf of Carlos Rovira" wrote: >In MDL there is two vars in the CSS url that could change > >https://code.getmdl.io/1.2.1/material.indigo-pink.min.css";> > >here "indigo" and "pink" can be configure to other colors to get other >kind >of effec

Re: [FlexJS] index html template vars

2016-11-29 Thread Carlos Rovira
In MDL there is two vars in the CSS url that could change https://code.getmdl.io/1.2.1/material.indigo-pink.min.css";> here "indigo" and "pink" can be configure to other colors to get other kind of effects in MDL 2016-11-30 6:20 GMT+01:00 Alex Harui : > > > On 11/29/16, 2:48 PM, "carlos.rov...@

Re: [FlexJS] index html template vars

2016-11-29 Thread Alex Harui
On 11/29/16, 2:48 PM, "carlos.rov...@gmail.com on behalf of Carlos Rovira" wrote: >Can I create a custom var in html template? >if so how? >for example, I'd like to add to my html ${color} (just like ${body} or >${head} >Thanks No way to do it right now. How would you specify color? -Alex

[FlexJS] index html template vars

2016-11-29 Thread Carlos Rovira
Can I create a custom var in html template? if so how? for example, I'd like to add to my html ${color} (just like ${body} or ${head} thanks -- Carlos Rovira Director General M: +34 607 22 60 05 http://www.codeoscopic.com http://www.avant2.es Este mensaje se dirige exclusivamente a su destinata