3 title
= "Tips & Snippets"
22 html_meta_keywords
= ""
23 html_meta_description
= ""
24 redirect_destination
= ""
25 xssfilter_allowed_tags
= ""
26 http_cache_control
= ""
28 content
= [[Remember we said the representation format for a wiki page is itself valid lua code. This lets you manipulate programmatically the nodes in the Wiki to achieve different effects. Here's an example.
33 This snippet shows how to export the contents of an image node containing a .jpg file to disk. This might be an ugly hack, but it works...
37 out = assert(io.open("node.jpg", "wb"))
38 out:write(base64.decode(content))