| description: |
Subject: soho patch to add two new feature : enable/disable linenos in pygments and access to full parts data in template Hi Damien Baty, I suggest one patch - its purpose is : * first feature is : enable this pygments rest syntax : .. sourcecode:: python :linenos: My code goes here. to enable of disable source code line number. The fix code is like in http://dev.pocoo.org/projects/pygments/browser/external/rst-directive.py pygments rst directive source code. * second feature is : bind docutils.core.publish_parts result to template. It's name is parts, exemple of main template is : <head> ... <meta tal:replace="structure context/parts/html_head" /> </head> <body> <div id="content"> <h1 tal:content="context/meta/title"></h1> <div tal:replace="structure context/parts/docinfo">docinfo</div> <tal:content tal:replace="structure context/content"/> </div> </body> In this example I use : * context/parts/html_head to get title and all meta html data * context/parts/docinfo to get docinfo data I thinks have access to all parts data it's usefull to use full power of rest format. Regards, Stephane |
| files modified: |
src/soho/builder.py
|