Package common :: Module rst_xhtml_generator
[hide private]
[frames] | no frames]

Module rst_xhtml_generator

source code

Classes [hide private]
  HTMLGenerator
Really simple HTMLGenerator starting from publish_parts
Functions [hide private]
 
pos_int_validator(text)
Validates that text can be evaluated as a positive integer
source code
 
generate_uri_role(role_name, aliases, anchor_text, base_url, interpret_url, validator)
Create and register a uri based "interpreted role"
source code
 
create_xhtml(text) source code
Variables [hide private]
  Generator = HTMLGenerator()

Imports: io, Publisher, roles, nodes, utils, set_classes


Function Details [hide private]

pos_int_validator(text)

source code 
Validates that text can be evaluated as a positive integer

generate_uri_role(role_name, aliases, anchor_text, base_url, interpret_url, validator)

source code 

Create and register a uri based "interpreted role"

Those are similar to the RFC, and PEP ones, and take
role_name:
        name that will be registered
aliases:
        list of alternate names
anchor_text:
        text that will be used, together with the role
base_url:
        base url for the link
interpret_url:
        this, modulo the validated text, will be added to it
validator:
        should return the validated text, or raise ValueError

create_xhtml(text)

source code 

Variables Details [hide private]

Generator

Value:
HTMLGenerator()