Example #1
0
	def __init__(self):
		self.page = doxter.get_config('page')
		self.output_file = doxter.get_config('output_file', 'index.html')
		self.autolinks = doxter.get_processor_by_name('AutoLinksProcessor')
		self.toc = doxter.get_processor_by_name('TOCProcessor')
		self.template = doxter.get_processor_by_name('TemplateProcessor')
		self.output = doxter.get_processor_by_name('OutputProcessor')
		self.content = ''
Example #2
0
	def __init__(self):
		self.site = doxter.get_config()
		self.page = doxter.get_config('page')
		self.pages = []
		self.posts = []

		self.template = doxter.get_processor_by_name('TemplateProcessor')
		self.output = doxter.get_processor_by_name('OutputProcessor')
Example #3
0
	def __init__(self):
		self.regexp_pygments = re.compile(r'\{%\s+highlight\s+(.*?)\s+%\}(.*?)\{%\s+endhighlight\s+%\}', re.S)
		self.regexp_metadata = re.compile(r'^---\s+(.*?)\s+---', re.S)
		self.regexp_path = re.compile(r'^(.*?)\-(.*?)\-(.*?)\-(.*?)$')
		self.page = doxter.get_config('page')

		self.template = doxter.get_processor_by_name('TemplateProcessor')
		self.template.register_filter('date_to_string', date_to_string)
		self.template.register_filter('date_to_xmlschema', date_to_xmlschema)
		self.template.register_filter('xml_escape', xml_escape)
		self.template.register_filter('array_to_sentence_string', array_to_sentence_string)
		self.template.register_filter('atomic_links', atomic_links)