Ego (unconfigured) · Journal · Manual · FAQ
Nota bene: the manual pages have not been updated completely from the prototyped version to the current version.

Ego's wrappers

literature

Used to wrap literature or any text you wish to separate out and number the lines. Optional arguments are title and cite. You can control the appearance and colors through CSS.

Example

[[ WRAPPER wrapper/literature
   title = "A Drinking Song"
   cite = "William Butler Yeats" ]]
Wine comes in at the mouth
And love comes in at the eye;
That's all we shall know for truth
Before we grow old and die.
I lift the glass to my mouth,
I look at you, and I sigh.
[[ END ]]

Result

A Drinking Song

Wine comes in at the mouth 1
And love comes in at the eye; 2
That's all we shall know for truth 3
Before we grow old and die. 4
I lift the glass to my mouth, 5
I look at you, and I sigh. 6
William Butler Yeats

ol/ul

[[ WRAPPER wrapper/321 ]]
[[ END ]]

dl



left_right

[[ WRAPPER wrapper/321 ]]
[[ END ]]
Takes optional noescape value to allow XHTML markup to go through without tranformation to entities like <.

javascript

Wraps your scripting in document.write() calls so that it will not show up at all if the user's JavaScript is disabled. You should use it in conjunction with noscript tags.

[[ WRAPPER wrapper/javascript ]]
<a href="javascript:void(0)"
 onclick="alert('do something!')">DHTML</a>
[[ END ]]
<noscript><a href="/some/path">Try a regular page</a></noscript>












left_right
dl

[[ ]]
[[ ]]
[[ ]]



Ego driven
Ego · Catalyst · Apache · FastCGI · CPAN · modperl · Template Toolkit · Perl