On 12/1/16, 2:32 PM, "carlos.rov...@gmail.com on behalf of Carlos Rovira"
<carlos.rov...@gmail.com on behalf of carlos.rov...@codeoscopic.com> wrote:

>Ok,
>
>so let say I have
>
><htmlTemplate>${basedir}/src/main/resources/mdl-js-index-template.html</ht
>mlTemplate>
>
>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 file (i.e: index.html) with the same code as
>"mdl-js-index-template.html", but with the vars ${primary} and ${accent},
>I
>will get translated since is in resource folder, but the ones from
>compiler
>${header}, ${body} will not processed right?
>

AIUI, ${header} and ${body} will not be processed by the Maven resource
plugin.  I don't know much about Maven, but don't you get to tell the
resource plugin where to put the resulting file?  Like
target/resources/mdl-js-index-template.html?  If so, then you would use
the resource plugin to grab src/main/resources/mdl-js-index-template.html,
fill in "primary" and "accent" and put it in
target/resources/mdl-js-index-template.html then use the -html-template
config for the compiler to have it look in target/resources instead of
src/main/resources and the compiler should pick that up, fill in ${header}
and ${body} and put the results in target/index.html.

Of course, I could be wrong, especially about what the resource plug-in
will let you do.

-Alex

Reply via email to