Nubie Q, Can giter8 merge templated files and non templated ones?

13 views
Skip to first unread message

Karl Roberts

unread,
Jun 12, 2015, 2:35:28 AM6/12/15
to git...@googlegroups.com
I have a project that contains a bunch of html that does not need to be templated and also some images. I only have one file that needs to be templated.

Is there a way to only run the StringTemplate over my one file but have all the other files in the final project too?

I can't just put everything under src/main/g8 because the image contain illegal chars that break the StringTemplate parsing
Also the HTML tags < > are interpreted as expressions.

I really want the whole project under one dir, copy it to the final location then generate the single templated file and place it with the other files.
Failing that can g8 pull down a git project as a dependency as a simple copy? If so I could shrink the project to the single template file and pull in the rest?

As an asside can I change the template property delimeters from $blah$ to %%blah%% ? I have a lot of $'s in the file to be templated as it describes shell commands?

Thanks

Karl

Tim Nelson

unread,
Jun 13, 2015, 6:21:19 AM6/13/15
to git...@googlegroups.com
Hi Karl,

The only way I now of to skip template processing is to use the verbatim field in default.properties.

For example, I have g8 template that has the following:

    verbatim=*.gif *.png *.js *.less *.eot *.svg *.ttf *.woff *.woff2

Tim

Karl Roberts

unread,
Jun 14, 2015, 9:18:18 PM6/14/15
to git...@googlegroups.com
Thanks Tim,

I'll give that a try.

Thanks

Karl
Reply all
Reply to author
Forward
0 new messages