On Fri, Jul 11, 2014 at 10:55 AM, stepharo <[email protected]> wrote:
> 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)
]
]
--
Damien Cassou
http://damiencassou.seasidehosting.st
"Success is the ability to go from one failure to another without
losing enthusiasm."
Winston Churchill