Browsing projects by Tag(s)

Select a tag to browse associated projects and drill deeper into the tag cloud.

Showing page 1 of 1

Genshi Compiler allows for rendering your Genshi template to Python source code. You can save the code as a Python module or compile it into a directly usable module object in memory. Just call the render function on the module with your template parameters to render the whole template or any of ... [More] your template functions to render those fragments separately. According to my initial benchmarks the rendering speed is typically ~40x faster than doing the same using Genshi. There is a cost of this speedup, certainly. Some of Genshi's dynamic features are not available, most notably anything that depends on a template loader (xi:include), the XML element tree representation (py:match) or the token stream (filters). [Less]

0
 
  0 reviews  |  1 user  |  2,715 lines of code  |  0 current contributors  |  Analyzed 6 days ago
 
 

Ehtml-pyIntroductionEhtml(Extend HTML) help you build static web site(page) easy and quickly. There are a php version of ehtml on sf. and ehtml-py build on genshi(python). System Requirementsapache2 python2.5+ genshi0.4.4+ Installcheckout the ehtml svn checkout ... [More] http://ehtml-py.googlecode.com/svn/trunk/ ehtml-py-read-onlyto anywhere you like. consider the directory as $ehtml-dir$. change file $ehtml-dir$/ehtml/handler.py 's mode to 755. chmod a+x $ehtml-dir$/ehtml/handler.pyopen the apache's config file, add the following 3 lines: AddHandler cgi-script .py Action ehtml-render $ehtml-dir$/ehtml/handler.py AddHandler ehtml-render .ehtmlto the Directory of your site. if there already has a line like AddHandler cgi-scriptin config, just add .py to the end of line with a space. if you got any error, check the Optionsto see if there are ExecCGI option be added. if you have any trouble to setup the apache's config file, go to about AddHandler or about Action or about Options to get help. Good luck! [Less]

0
 
  0 reviews  |  0 users  |  69 lines of code  |  0 current contributors  |  Analyzed about 1 year ago
 
 

Genshi is a Python toolkit for stream-based generation of output for the web. This projects enables Genshi to use HTML5 as: input: similar to the built-in tag soup support, see http://genshi.edgewall.org/wiki/GenshiRecipes/HtmlTransform for an example of use output: similar to the built-in HTML ... [More] support but follows HTML5 rules for optional tags and serialization template language: similar to the built-in XML Template Language (work in progress) HTML5 parsing is done using html5lib [Less]

0
 
  0 reviews  |  0 users  |  559 lines of code  |  0 current contributors  |  Analyzed 10 days ago
 
 
 
 

Creative Commons License Copyright © 2013 Black Duck Software, Inc. and its contributors, Some Rights Reserved. Unless otherwise marked, this work is licensed under a Creative Commons Attribution 3.0 Unported License . Ohloh ® and the Ohloh logo are trademarks of Black Duck Software, Inc. in the United States and/or other jurisdictions. All other trademarks are the property of their respective holders.