This is a pre-production deployment of Warehouse, however changes made here WILL affect the production instance of PyPI.
Latest Version Dependencies status unknown Test status unknown Test coverage unknown
Project Description

Grok source renderers

First take on making the zope.app.render classes available from Grok templates.

  • RestructuredText: template files with ‘.rst’ extension

    renders a complete HTML page, including embedded stylesheet (default) or with a configurable external stylesheet

Installation

Add ‘megrok.rendersource’ to the ‘install_requires’ list in your packages ‘setup.py’. Run buildout again. Template reloading is available in developer mode only: add ‘devmode on’ to the ‘zope.conf = ‘ line in your buildout.cfg

Configuration

To configure the stylesheet used with your template, add a method ‘namespace’ to your view class:

class Overview(grok.View):

    def namespace(self):
        # compute the stylesheet path to the file inside the 'static' folder,
        # eg. 'grok.css'
        stylesheet=self.static['grok.css']()
        # enable absolut URL handling, disable embedding
        return {'settings_overrides': {'stylesheet': stylesheet,
                                       'stylesheet_path': None,
                                       'embed_stylesheet': 0,
                                       'input_encoding': 'utf-8',
                                       'output_encoding': 'utf-8',
                                       }}

Other docutils related options can be added to the ‘settings_overrides’ dictionary. CF grok_overview.txt for more info on the namespace method.

Changes

0.5.1 (2010-03-10)

  • added the long description…

0.5 (2010-03-10)

  • upgrade to grok version 1.1rc1
  • changed the project namespace from d2m.rendersource to megrok.rendersource
Release History

Release History

0.5.1

This version

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

0.5

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

Download Files

Download Files

TODO: Brief introduction on what you do with files - including link to relevant help section.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
megrok.rendersource-0.5.1.tar.gz (9.1 kB) Copy SHA256 Checksum SHA256 Source Mar 10, 2010

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting