Paste number 25904: twiddler

Paste number 25904: twiddler
Pasted by: ChrisW
When:15 years, 4 months ago
Share:Tweet this! | http://paste.lisp.org/+JZK
Channel:None
Paste contents:
Raw Source | XML | Display As
Template:

"""
$header
$form_title

<p class="form-help">
Twiddlers are gods gift to templating
</p>

$footer
"""

code:

def renderAddForm(t):
    t['header'].replace(t.manage_page_header())
    t['form_title'].replace(t.manage_form_title(form_title='Add Twiddler'))
    t['footer'].replace(t.manage_page_footer())
    
addTwiddlerForm = ZopeTwiddler('addTwiddlerForm',
                               'addTwiddlerForm.twiddler',
                               input=FileWrapper(PlainText,__file__),
                               executor=Simple(renderAddForm),
                               filters=())

This paste has no annotations.

Colorize as:
Show Line Numbers

Lisppaste pastes can be made by anyone at any time. Imagine a fearsomely comprehensive disclaimer of liability. Now fear, comprehensively.