Replies: 1 comment
-
I suggest you go through the README. It covers all the major functionality. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I told you it was simple and I told you I was a newbie. Trying to replace Razor Engine scripts with Handlebars. This is the code I've got so far..
using HandlebarsDotNet;
var template = "MyFile_{{DateTime.Now "MMddyyyy"}}.txt";
var compiled = Handlebars.Compile(template);
var fname = compiled(new object {});
... and fname never has the date.
It's gotta be something simple, but like I said, I'm new to this.
Beta Was this translation helpful? Give feedback.
All reactions