tomj74 / chunk-templates

Chunk Templates, a template engine for Java
http://www.x5software.com/chunk/
MIT License
77 stars 10 forks source link

Wrong filename creation on Android for template #1

Closed sashatrn closed 9 years ago

sashatrn commented 9 years ago

I have template in resource /assets/templates/order.chunk. I try to load it with following code: AndroidTemplates loader = new AndroidTemplates(getInstrumentation().getContext(), "templates"); Theme theme = new Theme(loader); Chunk chunk = theme.makeChunk("order", "chunk");

But I get exception: java.io.FileNotFoundException: templates/;chunk;order.chtml

It seems that asset name is created incorrectly.

tomj74 commented 9 years ago

confirmed, fixed. pushed fix to master, please give it another try.

You can use this pre-release build: http://www.x5software.com/chunk/releases/chunk-templates-2.5.1.jar

sashatrn commented 9 years ago

Thanks. It works.