diff options
| author | Tomas Bzatek <tbzatek@users.sourceforge.net> | 2011-06-04 17:30:12 +0200 |
|---|---|---|
| committer | Tomas Bzatek <tbzatek@users.sourceforge.net> | 2011-06-04 17:30:12 +0200 |
| commit | fb5a52884dd17d17bab47de7f53c17c05ced6e1b (patch) | |
| tree | fdb3873d295b615bfb1689c54fb76e3abb4e273f /templates/default.xml | |
| parent | 960c477148cf832f79e89a4cdf9f3ce3389c7b06 (diff) | |
| download | cataract-fb5a52884dd17d17bab47de7f53c17c05ced6e1b.tar.xz | |
Introduce conditional system
This is very basic scripting support - simple value retrieval and
block conditionals. Defines could be either static from theme setup
or programatically added during page generation.
Diffstat (limited to 'templates/default.xml')
| -rw-r--r-- | templates/default.xml | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/templates/default.xml b/templates/default.xml index 67470c0..2a2fd8b 100644 --- a/templates/default.xml +++ b/templates/default.xml @@ -87,6 +87,14 @@ styles.css scripts-general.js ]]></supplemental_files> + + <!-- User defines, used in theme templates. Value is optional, empty string + will be used if value was requested but not specified. Defines can either + act as block conditionals (combo "ifdef(DEFINE_NAME)" and "endif(DEFINE_NAME)") + or as a value constant (specify "value(DEFINE_NAME)" to retrieve the value). + For "ifdef" negation, use "ifndef" or "else". --> + <define name="BORDER" value="single" /> + <define name="I_AM_HERE" /> </theme> <!-- Here you can define another theme, with different templates etc. |
