| committed by: | Stéphane KLEIN |
|---|---|
| date: | 02 Jul 23:34 |
| 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 |
| Permissions | Filename | Latest Rev | Last Changed | Size | ||
|---|---|---|---|---|---|---|
| -rw-r--r-- | Makefile | 1 | 01 Jul 23:58 | 364 | changes | download |
| -rw-r--r-- | README.txt | 1 | 01 Jul 23:58 | 168 | changes | download |
| -rw-r--r-- | TODO.txt | 1 | 01 Jul 23:58 | 1K | changes | download |
| drwxr-xr-x | doc/ | 1 | 01 Jul 23:58 | changes | download | |
| -rw-r--r-- | setup.py | 1 | 01 Jul 23:58 | 1.4K | changes | download |
| drwxr-xr-x | src/ | 1 | 01 Jul 23:58 | changes | download |