onionhammer / nim-templates

A simple string templating library for Nim
BSD 3-Clause "New" or "Revised" License
94 stars 9 forks source link

support for html file path argument for tmpli #5

Closed joemarct closed 8 years ago

joemarct commented 8 years ago

So HTML code can be written to separate files and can be organized in a templates folder.

onionhammer commented 8 years ago

I think that single quote vs. triple quote to differentiate is a bit too arbitrary... what if you used a separate macro (tmplf) instead?

Or, ideally, you figured out how to use a non-literal string.. i.e. tmpli (staticRead "myfile.html")

joemarct commented 8 years ago

I think having a separate macro (tmplf) is more intuitive. I'll revise the code accordingly.

onionhammer commented 8 years ago

Great! I will test this today and plan to have it merged in.