Commits

Show all
Author Commit Message Labels Comments Date
Thibault North
Merge with obensonne / poole
Oben Sonne
Allow creation of virtual pages Now pre-convert-hooks may create virtual pages which have no markdown source file but will end up as HTML files. Hooks in the macros module may create them like: vp = Page('foo.md', virtual="""... page source content ...""") pages.append(vp) If the file name contains path elements which are not shared with real pages, make sure you also create them in the output folder -- Poole only crea…
Bookmarks
master
Oben Sonne
Minor wording fix in README
Oben Sonne
Move recipes from README into wiki This keeps the README compact and makes it easier for others to contribute more recipes for how to get things done with Poole.
Thibault North
Use inotify to rebuild on change (draft)
Thibault North
Fix incorrect indentation
Thibault North
Add an option for the default language
Thibault North
Support for multiple languages
Oben Sonne
Python 2/3 hack for the exec statement/function See http://docs.python.org/release/3.0.1/whatsnew/3.0.html for changes with regard to `exec`. The problem here is that we cannot use the function syntax in Poole already for Python 2.x since we need a qualified exec, and thus we need the `in` syntax which causes a syntax error in Py3. This workaround uses `execfile` in Py2 (which, as a function, does not cause syntax errors in Py3) and the `exec`…
Oben Sonne
Fix type in test data
Oben Sonne
Link to list of example sites in README
Oben Sonne
Minor import cleanup
Oben Sonne
Sync gitignore with hgignore
Oben Sonne
Add a simple test suite The test suite simple initializes and builds the Poole template project and checks if the generated files are as expected.
Oben Sonne
Reorder sections in README
Oben Sonne
Add custom convert documentation to README
Oben Sonne
Support custom converters in the macros module It is now possible to define custom converters in the macros module (e.g. for SCSS or LESS files). Converters must be defined using a dictionary named 'converter' with file name patterns as keys and a converter funcion as well as a target file name extension as values. Example: converter = { r'\.less': (less_to_css, 'css'), ... } The converter function `less_to_css` must …
Oben Sonne
Use more sane __getattr__ instead of __getattribute__ in Page class
Oben Sonne
Minor doc update on builtin macros
Oben Sonne
More compact code (minor) Anyone sees a problem on readability here?
matthijs
Use htmlspecialchars in the default template
matthijs
Add 'htmlspecialchars' as a "builtin" macro This allows templates and other code to perform html escaping of strings where needed. This implements the escaping from scratch, since there is no useful function for it built into python (there are some modules, but they either require newer python version or don't escape "). The name 'htmlspecialchars' was borrowed from PHP, since this function implements the same behaviour.
matthijs
Restructure macros.py handling This makes the code a bit simpler and allows poole to preset functions in the macros module (unlike the previous "class nomod" approach, which caused a function to be treated as an unbound method).
Paolo Dina
Minor docs issue, fixed typo.
Paolo Dina
Improved the script's shebang
Oben Sonne
Use markdown for flattr link
Oben Sonne
Add git ignore file
Oben Sonne
Add .md extension to README to please github
Oben Sonne
Tune layout of rendered README
Oben Sonne
Add flattr link to README
  1. Prev
  2. Next