Plugins create normally parts of the CMS page. For these outputs a plugin can use the django template engine. These templates generates not complete html pages, but only a small part of it.
We called these plugin template 'internal pages'. See also PyLucid related terms and definitions
We are looking for a better/shorter name for "internal pages", see forum discussion
Every internal page can have additional Stylesheet and/or JavaScript files. These files are optional.
The CSS/JS files would be automatic include with <link href=...> and <script src=...> if the internal page are used. (new in dev. version)
The internal page stored into the PyLucid media path, e.g.:
The additional .css/.js files must be exactly the same name like the internal page file, e.g.:
To use the internal page for building a output via the django template engine, the plugin must only do that:
There is no need for inserting {% load i18n %}. We always activate "i18n" via add_to_builtins()
The method _render_template has a debug parameter, e.g.: