/usr/lib/falcon/parser/render/sitehelper.fal is in libfalcon-engine1 0.9.6.9-git20120606-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 | /*
FALCON - Generic Parser
FILE: sitehelper.fal
Helper for generic parser renderers.
-------------------------------------------------------------------
Author: Giancarlo Niccolai
Begin: Sat, 30 Aug 2008 09:42:22 +0200
-------------------------------------------------------------------
(C) Copyright 2008: the FALCON developers (see list in AUTHORS file)
See LICENSE file for licensing details.
*/
/*# Base abstract class for site helpers.
Site helpers are classes used to render items whose rendering is specific to
a certain site. For example, inline images and link to file requre a knowledge
of the target site that can't be directly embedded in the renderer.
The user of the renderer classes should use class to help rendering those
elements whose final format depends on where they should be rendered.
Those are namely:
- code elements, which may require special formatting.
- link to internal wiki pages, that must be generated by the owning engine.
- Wiki interlinks.
- img elements.
- Link to local file resources.
- plugins.
As some of these elements (most notabily the plugins) may require to have some
context information, the site helper can be initialized using a entity id or
page name, and the syntax top node (or tree root).
*/
class SiteHelper( page_name, topnode )
page_name = page_name
topnode = topnode
function code(v, lang)
raise "SiteHelper.code To be implemented"
end
function pageLink( v )
raise "SiteHelper.pageLink To be implemented"
end
function iLink( wiki, v )
raise "SiteHelper.iLink To be implemented"
end
function img( v )
raise "SiteHelper.img To be implemented"
end
function file( v )
raise "SiteHelper.file To be implemented"
end
function plugin( plugin_name, params, node, isDuringStandout )
return "SiteHelper.plugin To be implemented"
end
end
|