markdown-html icon indicating copy to clipboard operation
markdown-html copied to clipboard

Document mustache template usage

Open alexdmiller opened this issue 8 years ago • 0 comments

I figured out that I can use {{{content}}} in a mustache template to insert the transformed markdown code. It might be good to document how to write the mustache template.

For example, I'm curious to know if I can pass in values from the command line that can be inserted in the template? If you had a template like:

<html>
  {{{myValue}}}
</html>

could you do:

markdown-html markdown-test.md -l template.html -v myValue="Hello!"

Or something similar—like passing a JSON file to populate template values?

alexdmiller avatar Apr 19 '16 16:04 alexdmiller