July 13, 2014
2:02 p.m.
Thanks Thanks Thanks. I want to check Marina too.
And I'm reading pillar code because I would like to see how I can use a API to generate XHTML and take into account mustache
pillarString := '! Some text
-item1 -item2'.
pillarDocument := PRDocumentParser parse: pillarString.
htmlString := PRHTMLWriter write: pillarDocument .
'main.template.html' asFileReference mustacheTemplateDuring: [ :template|
'result.html' asFileReference writeStreamDo: [ :outStream |
outStream nextPutAll: (template value: { 'contents' -> htmlString } asDictionary)
]
]