A class to render web template files into HTML documents.
Replaces things[0] with things[1] in what all at once. Returns the new string.
Loads a template from the template directory, applies the given context variables, and returns the html document in dom format. You can use Document.toString to make a string.
Serves up a directory of template files as html. This is meant to be used for some near-static html in the midst of an application, giving you a little bit of dynamic content and conveniences with the ease of editing files without recompiles.
A loader object for reading raw template, so you can use something other than files if you like.
Can be used as a return value from one of your own methods when rendering websites with WebPresenterWithTemplateSupport.
UDA to put on a method when using WebPresenterWithTemplateSupport. Overrides the default template skeleton file name.
UDA to put on a method when using WebPresenterWithTemplateSupport. Overrides default generic element formatting and instead uses the specified template name to render the return value.
UDA to attach runtime metadata to a function. Will be available in the template.
Make a class that inherits from this with your further customizations, or minimally:
This provides a kind of web template support, built on top of arsd.dom and arsd.script, in support of arsd.cgi.
Functions available: encodeURIComponent, formatDate, dayOfWeek, formatTime, filterKeys