How to define template directives (from an API perspective)?
- by Ralph
Preface
I'm writing a template language (don't bother trying to talk me out of it), and in it, there are two kinds of user-extensible nodes. TemplateTags and TemplateDirectives.
A TemplateTag closely relates to an HTML tag -- it might look something like
div(class="green") { "content" }
And it'll be rendered as
<div…