The code below the page it's (I don't know why you can see it, it's not hidden at all):
Code:
// -- The following line just recovers the page tags, and concatenates them on a String separated by commas
var t = string.join([ t.value foreach var t in page.tags],",");
// -- The following line make the button to create the new page
// --- label -> The label for the button
// --- button -> Show a button
// --- template -> The template for the new page ( I will explain it later on )
// --- title -> New page title
// --- args -> The new page arguments ( on this case the tags string on a parameter called tags )
wiki.create{label: "Make new page with this page tags", button: true,
template: "AddingTagsContainer",
title: "New template with parent tags", args: { tags: t } };
Template (AddingTagsContainer): http://developer.mindtouch.com/templ...gTagsContainer
1. This template just recovers the tags from the list pased on the argument tags
2. Then it generated a page content that when a new page get's saved creates the page tags
edit: -> When you save a page, the code after the edit: will be executed and the result of the code will be writed on the page, I mean:
You write:
{{ edit: Date.Now; }}
You Save, and you see:
2010/04/17 10:10 GMT
You edit again and you don't se the original code you see the result:
2010/04/17 10:10 GMT
Carles