LionWiki 2.0 (Default branch)


 
Thread Tools Search this Thread
Special Forums News, Links, Events and Announcements Software Releases - RSS News LionWiki 2.0 (Default branch)
# 1  
Old 12-09-2008
LionWiki 2.0 (Default branch)

LionWiki is a minimalist file-based (doesn't needa database), templatable, extensible wiki enginethat works from just one file (30KB). It supportspage history, recent changes, interfacelocalization, password protection (both writingpages and seeing), and much more through plugins(CAPTCHA, RSS, syntax for Tables). It's intendedfor small personal Web sites, notebooks, and othersimple applications. Installation is very easy:just copy the file and create a directory.License: GNU General Public License v2Changes:
Support for multilingual content. Edit summary. A subpage (also known as template) mechanism. Redirects. Pages can be previewed before saving. New plugins: Upload, Admin, Slimbox, and more.Image

Image

More...
Login or Register to Ask a Question

Previous Thread | Next Thread
Login or Register to Ask a Question
OpenGuides::Template(3pm)				User Contributed Perl Documentation				 OpenGuides::Template(3pm)

NAME
OpenGuides::Template - Do Template Toolkit related stuff for OpenGuides applications. DESCRIPTION
Does all the Template Toolkit stuff for OpenGuides. Distributed and installed as part of the OpenGuides project, not intended for independent installation. This documentation is probably only useful to OpenGuides developers. SYNOPSIS
use OpenGuides::Config; use OpenGuides::Utils; use OpenGuides::Template; my $config = OpenGuides::Config->new( file => "wiki.conf" ); my $wiki = OpenGuides::Utils->make_wiki_object( config => $config ); print OpenGuides::Template->output( wiki => $wiki, config => $config, template => "node.tt", vars => { foo => "bar" } ); METHODS
output print OpenGuides::Template->output( wiki => $wiki, config => $config, template => "node.tt", content_type => "text/html", cookies => $cookie, vars => {foo => "bar"}, noheaders => 1 ); Returns everything you need to send to STDOUT, including the Content-Type: header. Croaks unless "template" is supplied. The config object and variables supplied in "vars" are passed through to the template specified. Additional Template Toolkit variables are automatically set and passed through as well, as described below. Note: variables set in "vars" will over-ride any variables of the same name in the config object or the user cookies. o "openguides_version" o "site_name" o "cgi_url" o "full_cgi_url" o "enable_page_deletion" (gets set to true or false - defaults to false) o "contact_email" o "stylesheet" o "home_link" o "formatting_rules_link" (unless "omit_formatting_link" is set in user cookie) o "navbar_on_home_page" o "home_name" o "gmaps_api_key" o "licence_name" o "licence_url" o "licence_info_url" o "prefs" (the preferences from the user cookie) If "node" is supplied: o "node_name" o "node_param" (the node name escaped for use in URLs) Content-Type: defaults to "text/html" and is omitted if the "content_type" arg is explicitly set to the blank string. However, what you more often need is the "noheaders" option, which suppresses all HTTP headers, not just the Content-Type. The HTTP response code may be explictly set with the "http_status" arg. extract_metadata_vars my %node_data = $wiki->retrieve_node( "Home Page" ); my %metadata_vars = OpenGuides::Template->extract_metadata_vars( wiki => $wiki, config => $config, metadata => $node_data{metadata} ); # -- or -- my %metadata_vars = OpenGuides::Template->extract_metadata_vars( wiki => $wiki, config => $config, cgi_obj => $q ); # -- then -- print OpenGuides::Template->output( wiki => $wiki, config => $config, template => "node.tt", vars => { foo => "bar", %metadata_vars } ); Picks out things like categories, locales, phone number etc from EITHER the metadata hash returned by Wiki::Toolkit OR the query parameters in a CGI object, and packages them nicely for passing to templates or storing in Wiki::Toolkit datastore. If you supply both "metadata" and "cgi_obj" then "metadata" will take precedence, but don't do that. The variables "dist_field", "coord_field_1", "coord_field_1_name", "coord_field_1_value", "coord_field_2", "coord_field_2_name", and "coord_field_2_value", which are used to create various forms, will only be set if either "metadata" is supplied or "set_coord_field_vars" is true, to prevent these values from being stored in the database on a node commit. AUTHOR
The OpenGuides Project (openguides-dev@lists.openguides.org) COPYRIGHT
Copyright (C) 2003-2009 The OpenGuides Project. All Rights Reserved. This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself. perl v5.14.2 2013-01-11 OpenGuides::Template(3pm)