Framework Integration¶
Pyramid¶
Add plim.adapters.pyramid_renderer
into the pyramid.includes
list of your .ini configuration file
[app:main]
pyramid.includes =
# ... (other packages)
plim.adapters.pyramid_renderer
The adapter will add the .plim
renderer for use in Pyramid. This can be overridden and more may be
added via the config.add_plim_renderer()
directive:
config.add_plim_renderer('.plm', mako_settings_prefix='mako.')
The renderer will load its configuration from a provided mako prefix in the Pyramid settings dictionary. The default prefix is ‘mako.’.
Syntax Highlighters¶
At this moment, Plim doesn’t have syntax highlighters.
But, at a starting point you can use Slim syntax highlighters, since most of Plim syntax is the same as of Slim.