Mercurial > piecrust2
view piecrust/formatting/base.py @ 190:430ee5b80962
serve: Make the server find assets generated by external tools.
When a processor is bypassing PieCrust's pipeline, we don't know what
output files they have produced, so if we don't find an asset in the record
for a given path, we quickly check the output folder for any matching file
there. If there is, just return it.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Sun, 11 Jan 2015 22:58:38 -0800 |
parents | f485ba500df3 |
children | 7d868afc6791 |
line wrap: on
line source
PRIORITY_FIRST = -1 PRIORITY_NORMAL = 0 PRIORITY_LAST = 1 class Formatter(object): FORMAT_NAMES = None OUTPUT_FORMAT = None def __init__(self): self.priority = PRIORITY_NORMAL def initialize(self, app): self.app = app def render(self, format_name, txt): raise NotImplementedError()