Pyjoyment.Plugin.EPLRenderer - Embedded Python Lite renderer plugin¶
# Pyjoyment
app.plugin('EPLRenderer')
# Pyjoyment.Lite
plugin('EPLRenderer')
Pyjoyment.Plugin.EPLRenderer is a renderer for epl templates,
which are pretty much just raw Pyjo.Template. The template gets the
controller as its first argument.
% c = args[0]
Hello <%= c.param('name') %>!
This is a core plugin, that means it is always enabled and its code a good example for learning to build new plugins, you’re welcome to fork it.
See Pyjoyment.Plugins for a list of plugins that are available by
default.
See also¶
Pyjoyment, https://mojolicious.org.
Ported from Mojolicious::Plugin::EPLRenderer of Mojolicious 9.49.
- class Pyjoyment.Plugin.EPLRenderer.Pyjoyment_Plugin_EPLRenderer[source]¶
Pyjoyment.Plugin.EPLRendererinherits all methods fromPyjoyment.Pluginand implements the following new ones.- register(app: Pyjoyment_App, conf: dict[str, Any] | None = None) None[source]¶
plugin.register(Pyjoyment.new())
Register renderer in
Pyjoymentapplication.