Ticket #751 (closed enhancement: duplicate)
[TiddlyWeb] consider a generic serializer that uses a templating system
| Reported by: | cdent | Owned by: | cdent |
|---|---|---|---|
| Priority: | trivial | Milestone: | |
| Component: | tiddlyweb | Version: | |
| Severity: | low | Keywords: | |
| Cc: |
Description (last modified by cdent) (diff)
Jeremy is interested in a way to use a template engine for the creation of arbitrary outputs of tiddler data.
One way to do this would be to have a serializer that can take a template as an input. The system can be configured then to handle proper mime types in the right circumstances and somehow manage to do the right thing.
Having such a thing would allow for some interesting experiments.
To be truly useful it would need to integrate with other serializations so you could, in templates, say things like:
{for tiddler in tiddlers} <p>{tiddler.as_html}</p> {end for}
and
{for tiddler in tiddlers} <pre><tiddler.as_text}</p> <end for>
Or whatever. Some thought would be required to make sure that we are able to present the right information to templates.
In Chris's mind this system can be as complicated as we like, but should maintain as much compartmentalization and separation from the rest of TiddlyWeb as possible.
