Mercurial > piecrust2
comparison piecrust/formatting/base.py @ 3:f485ba500df3
Gigantic change to basically make PieCrust 2 vaguely functional.
- Serving works, with debug window.
- Baking works, multi-threading, with dependency handling.
- Various things not implemented yet.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Sun, 10 Aug 2014 23:43:16 -0700 |
parents | |
children | 7d868afc6791 |
comparison
equal
deleted
inserted
replaced
2:40fa08b261b9 | 3:f485ba500df3 |
---|---|
1 | |
2 PRIORITY_FIRST = -1 | |
3 PRIORITY_NORMAL = 0 | |
4 PRIORITY_LAST = 1 | |
5 | |
6 | |
7 class Formatter(object): | |
8 FORMAT_NAMES = None | |
9 OUTPUT_FORMAT = None | |
10 | |
11 def __init__(self): | |
12 self.priority = PRIORITY_NORMAL | |
13 | |
14 def initialize(self, app): | |
15 self.app = app | |
16 | |
17 def render(self, format_name, txt): | |
18 raise NotImplementedError() | |
19 |