annotate src/bridge/bridge_constructor/constructors/mediawiki/mediawiki_template.tpl @ 2169:f472179305a1

tools(templates): workflow improvments: - template theme can be specified in parenthesis: (some_theme)path/to/template.html. Withtout parenthesis, "default" is used - static content are supposed to be in [theme]/static, error pages in [theme]/error/[err_code].html - default page are used in some case (2 for now): if error page with specified code doesn't exists, a base page is used, and if a page doesn't exist for a theme, the same one for default theme is looked for - CSS files are automatically found for HTML pages - CSS files can be split, the'll be added in the template according to the page requested. - theme CSS file is looked for, and if not found the default theme equivalent is looked for. - each element of a path can be associated to a CSS file, and styles.css is always there. For instance if blog/articles.html is requested, the following CSS can be included: "styles.css", "blog.css", "blog_article.css". They all must be in /static - if the automatic finding of CSS files is not wanted, css_files arguments can be used instead, with full relative path (i.e. including theme) - CSS files can be merged and included inline with css_inline argument - root_path can be specified, it will be used as a prefix for static files - requested theme (which may differ from actual theme, e.g. if the template is not found and default one is used instead) is available in template with "theme" variable - added getThemeAndRoot method to retrieve theme and theme root path from template
author Goffi <goffi@goffi.org>
date Sun, 05 Mar 2017 23:41:10 +0100
parents da4097de5a95
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
740
aebc8ba05129 bridge (constructor): added categories for the mediawiki export
souliane <souliane@mailoo.org>
parents: 278
diff changeset
1 [[Catégorie:Salut à Toi]]
aebc8ba05129 bridge (constructor): added categories for the mediawiki export
souliane <souliane@mailoo.org>
parents: 278
diff changeset
2 [[Catégorie:documentation développeur]]
aebc8ba05129 bridge (constructor): added categories for the mediawiki export
souliane <souliane@mailoo.org>
parents: 278
diff changeset
3
278
56d9c4cfdcfa mediawiki template
Goffi <goffi@goffi.org>
parents:
diff changeset
4 = Overview =
56d9c4cfdcfa mediawiki template
Goffi <goffi@goffi.org>
parents:
diff changeset
5 This is an autogenerated doc for SàT bridge's API
56d9c4cfdcfa mediawiki template
Goffi <goffi@goffi.org>
parents:
diff changeset
6 = Signals =
56d9c4cfdcfa mediawiki template
Goffi <goffi@goffi.org>
parents:
diff changeset
7 ##SIGNALS_PART##
56d9c4cfdcfa mediawiki template
Goffi <goffi@goffi.org>
parents:
diff changeset
8 = Methods =
56d9c4cfdcfa mediawiki template
Goffi <goffi@goffi.org>
parents:
diff changeset
9 ##METHODS_PART##
56d9c4cfdcfa mediawiki template
Goffi <goffi@goffi.org>
parents:
diff changeset
10 ----
56d9c4cfdcfa mediawiki template
Goffi <goffi@goffi.org>
parents:
diff changeset
11 ##TIMESTAMP##