Expand documentation in werc website.
This commit is contained in:
parent
272c9901d0
commit
3f8988a1f8
2 changed files with 74 additions and 2 deletions
|
|
@ -0,0 +1,43 @@
|
||||||
|
Werc Configuration Options
|
||||||
|
==========================
|
||||||
|
|
||||||
|
|
||||||
|
Titles and metadata
|
||||||
|
-------------------
|
||||||
|
|
||||||
|
Variables:
|
||||||
|
|
||||||
|
* Page title:
|
||||||
|
* siteTitle
|
||||||
|
* siteSubTitle
|
||||||
|
|
||||||
|
* Html header meta tags:
|
||||||
|
* meta_description
|
||||||
|
* meta_keywords
|
||||||
|
* extraHeaders - Raw extra headers.
|
||||||
|
|
||||||
|
|
||||||
|
Sidebar and navigation
|
||||||
|
----------------------
|
||||||
|
|
||||||
|
Variables:
|
||||||
|
|
||||||
|
* sideBarNavTitle
|
||||||
|
|
||||||
|
Functions:
|
||||||
|
|
||||||
|
* `conf_hide_paths [paths_patterns ...]` - Hide the given patterns from navigation menu, sitemap and dir listing (do *not* depend on this for securty!).
|
||||||
|
|
||||||
|
Http control
|
||||||
|
------------
|
||||||
|
|
||||||
|
Variables:
|
||||||
|
|
||||||
|
* extraHttpHeaders - Raw HTTP headers to be added to response.
|
||||||
|
|
||||||
|
Functions:
|
||||||
|
|
||||||
|
* `conf_perm_redirect [pattern] destination` - If pattern is provided, match it against the requested url, and replace the match with `destination`; ie., *s/pattern/destination/.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
Rc template language
|
The Rc Template Language
|
||||||
====================
|
========================
|
||||||
|
|
||||||
Implemented by Kris, thanks!
|
Implemented by Kris, thanks!
|
||||||
|
|
||||||
|
|
@ -10,3 +10,32 @@ Basic syntax:
|
||||||
* To 'inline' the value of an environment variable use `%($my_var%)`
|
* To 'inline' the value of an environment variable use `%($my_var%)`
|
||||||
|
|
||||||
That is basically it!
|
That is basically it!
|
||||||
|
|
||||||
|
|
||||||
|
Examples
|
||||||
|
--------
|
||||||
|
|
||||||
|
Loops
|
||||||
|
|
||||||
|
<ul>
|
||||||
|
% for(i in a b c) {
|
||||||
|
% echo '<li>'$i'</li>'
|
||||||
|
% }
|
||||||
|
</uL>
|
||||||
|
|
||||||
|
Is equivalent to:
|
||||||
|
|
||||||
|
<ul>
|
||||||
|
% for(i in a b c) {
|
||||||
|
<li>%($i%)</li>
|
||||||
|
% }
|
||||||
|
</uL>
|
||||||
|
|
||||||
|
and results in this output:
|
||||||
|
|
||||||
|
<ul>
|
||||||
|
<li>a</li>
|
||||||
|
<li>b</li>
|
||||||
|
<li>c</li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue