From 509bf0216612e1eefc852c1c09e5d2d023aa5be5 Mon Sep 17 00:00:00 2001 From: admin Date: Tue, 4 Jan 2011 14:31:44 +0100 Subject: [PATCH] (no comment) ---extra-fields------------------------- minor="" --- Tips_And_Snippets.lua | 37 +++++++++++++++++++++++++++++++++---- 1 file changed, 33 insertions(+), 4 deletions(-) diff --git a/Tips_And_Snippets.lua b/Tips_And_Snippets.lua index c1bdaf9..171b0a6 100644 --- a/Tips_And_Snippets.lua +++ b/Tips_And_Snippets.lua @@ -1,14 +1,43 @@ +fields = "" title = "Tips And Snippets" category = "" +actions = "" +config = "" +markup_module = "" +templates = "" +translations = "" +permissions = "" +html_main = "" +html_head = "" +html_menu = "" +html_logo = "" +html_search = "" +html_page = "" +html_content = "" +html_body = "" +html_header = "" +html_footer = "" +html_sidebar = "" +html_meta_keywords= "" +html_meta_description= "" +redirect_destination= "" +xssfilter_allowed_tags= "" +http_cache_control= "" +http_expires = "" 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. Exporting an Image ------------------ - require"node.lua" - - +require"node.lua" +require"base64" +out = assert(io.open("node.jpg", "wb")) +out:write(base64.decode(content)) +out:close() ]] -breadcrumb = "" \ No newline at end of file +edit_ui = "" +admin_edit_ui = "" +breadcrumb = "" +save_hook = "" \ No newline at end of file -- 2.11.4.GIT