Tree [1c6c16] default /
 History



File Date Author Commit
 docs 2010-10-02 Rick Copeland Rick Copeland [bde1d1] More doc updates
 kajiki 2012-05-07 Rick Copeland Rick Copeland [1c6c16] Ensure that entities in XML input are escaped i...
 .hgignore 2010-09-27 Rick Copeland Rick Copeland [6dc160] Add readme, remove dist files
 .hgtags 2012-05-07 Rick Copeland Rick Copeland [88449b] Added tag 0.3.5 for changeset a1822eaffcb0
 NOTES.txt 2010-11-27 Rick Copeland Rick Copeland [c5a4be] Bump release
 README 2010-09-27 Rick Copeland Rick Copeland [b5b551] Update README
 TODO.txt 2010-10-01 Rick Copeland Rick Copeland [0ed0d3] Add more docs
 setup.cfg 2011-08-26 Rick Copeland Rick Copeland [7e7511] Fix version info
 setup.py 2011-08-26 Rick Copeland Rick Copeland [7e7511] Fix version info
 speedtest.py 2010-09-20 Rick Copeland Rick Copeland [2444cd] Add performance test suite

Read Me

# Kajiki: Really fast well-formed xml templates

Are you tired of the slow performance of Genshi? But
you still long for the assurance that your output is well-formed that you
miss from all those other templating engines? Do you wish you had Jinja's
blocks with Genshi's syntax? Then look  no further, Kajiki is for you!
Kajiki quickly compiles Genshi-like syntax to *real python bytecode*
that renders with blazing-fast speed! Don't delay! Pick up your
copy of Kajiki today!

## QuickStart

    :::python
    >>> import kajiki
    >>> Template = kajiki.XMLTemplate('''<html>
    ...     <head><title>$title</title></head>
    ...     <body>
    ...         <h1>$title</h1>
    ...         <ul>
    ...             <li py:for="x in range(repetitions)">$title</li>
    ...         </ul>    
    ...     </body>
    ... </html>''')
    >>> print Template(dict(title='Kajiki is teh awesome!', repetitions=3)).render()
    <html>
        <head><title>Kajiki is teh awesome!</title></head>
        <body>
            <h1>Kajiki is teh awesome!</h1>
            <ul>
                <li>Kajiki is teh awesome!</li><li>Kajiki is teh awesome!</li><li>Kajiki is teh awesome!</li>
            </ul>    
        </body>
    </html>

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks