How to display the content of a text attachment in the page?

Version 1.1 by Vincent Massol on 2011/11/09

Try this:

{{velocity}}
$doc.getAttachment("myattachment.txt").getContentAsString())
{{/velocity}}

Get Connected