uriel
3a1191a4a0
Fix bug where incorrect elements in the navigation sidebar were highlighted, thanks to arg for reporting this.
2009-08-06 02:20:58 +02:00
uriel
8cd04dd184
New context var 'local_file' that will point to the on-disk-file that represents the main content of a given page request (if such exists, otherwise it is '' or ()).
...
Move title extracting functions from sitemap.tpl to werclib.rc.
Rewrite .md title extraction code to only match first lines when 'underlines' with =.
Use the changes above to generate better page titles when possible.
2009-07-28 20:28:35 +02:00
uriel
f5474bcc0d
Implement dir listing headers and footers. Just add a _header.md or _footer.md
...
file to any directory and their contents will be displayed together with the
directory listing.
2009-07-28 14:36:38 +02:00
uriel
328c6a394e
Properly handle dashes in paths the same way we treated underscores when generating page titles. This includes sitemaps, sidebar nav trees and the page title header itself.
2009-07-19 08:01:42 +02:00
uriel
a745a8bd28
I'm a retard, fix brown paper bag bug from the last commit.
2009-06-07 10:40:35 +02:00
uriel
5e2170a691
Move shared .tpl files to tpl/ from lib/, this fixes a DoS vulneravility where master_template.tpl could be accessed as a standalone .tpl file that recursively called itself.
2009-06-06 16:20:02 +02:00
uriel
9c37554a9f
Optimization: avoid using a temporary file to calculate the hash in md_handler.
2009-06-01 07:00:11 +02:00
uriel
58b48192a4
Move setup of main handler for 404 to a setup_404_handler function that can be more easily overriden, for example from config files!
2009-05-29 10:07:01 +00:00
uriel
fc307bb7b7
Remove add_synth_paths function, not really needed, can manipulate variable directly for now.
2009-03-09 22:16:11 +00:00
uriel
812ffcf8aa
New api to allow 'synthetic' dirs, only for sidebar for now.
2009-03-08 23:58:49 +01:00
uriel
bd8c80efa3
Correct <ul> and <li> nesting in navigation sidebar.
2009-03-03 22:34:26 +00:00
uriel
467b4182d4
Revert the <ul> fix which was not really correct, and fix another missing </li>.
2009-03-03 22:04:17 +00:00
uriel
009b173ebd
Stop generating an extra superfluous <ul></ul> in sidebar menu.
2009-03-03 21:38:22 +00:00
uriel
2a6f78ec4e
New link_bar handler to be used in sidebars.
2009-03-03 12:32:03 +00:00
uriel
a32b568f63
Minor style changes.
2009-02-27 22:38:55 +00:00
uriel
cfca9ad7a5
In the sidebar tree, remove sitedir *after* we apply dirfilter.
2009-02-21 00:03:11 +00:00
uriel
a1d12138bb
Reorg code in five source files: werc.rc, cgilib.rc, corehandlers.rc, wercconf.rc and werclib.rc.
2009-02-01 20:06:51 +01:00