Commit graph

  • d8ff0403e8 Move comment to where it belong and note deprecation. Uriel 2009-01-22 14:24:48 +01:00
  • 3bdb99773b Rewrite http post parsing code, this should be faster and cleaner, added a get_post_args function to keep backwards compat but it is not really needed. Uriel 2009-01-22 14:21:40 +01:00
  • 04f6550a53 Merge in werc.cat-v.org updates and css changes. Uriel 2009-01-22 09:24:10 +01:00
  • af5a82774d Add conf_enable_blog function to blagh to be used to setup a blog. Uriel 2009-01-22 09:23:20 +01:00
  • efac1136d0 Change app loading to be done in two passes, first source app files, then call init for enabled apps. This makes it possible to call app functions at config time. Provide $conf_wd variable at config time, which can in turn be used by apps to determine where in the tree we are at config/setup time. Uriel 2009-01-22 09:22:15 +01:00
  • bd43bae45a Try to make default css font setup saner. Uriel 2009-01-21 10:26:09 +00:00
  • 3404cbd019 Silly cosmetic fix for werc site title Uriel 2009-01-21 10:25:39 +00:00
  • 9e4d99e025 Some more werc.cat-v.org content Uriel 2009-01-21 10:23:35 +00:00
  • f6d574aaba Update urls to linke to werc.cat-v.org Uriel 2009-01-21 09:27:35 +00:00
  • ca6eb56a79 Add comment about minnor bug. Uriel 2009-01-21 09:26:13 +00:00
  • f2bfe0d665 Fix display of individual blog posts. Uriel 2009-01-20 09:06:28 +00:00
  • 034de66bd8 Fix debug printing of main handler. Uriel 2009-01-20 09:05:57 +00:00
  • 3e99f67bf0 More updates to new werc site. Uriel 2009-01-20 08:24:36 +01:00
  • a20b90f0cd Allow to set optional dir listing sorting (ls) options with the config var: dir_listing_ls_opts Uriel 2009-01-20 06:55:17 +01:00
  • cee8d01d9b Start the rc template docs. Uriel 2009-01-20 04:13:53 +01:00
  • 24074f3cf3 Add apps pages to new werc site. Uriel 2009-01-20 04:08:13 +01:00
  • 79357e5c5a Add werc.cat-v.org/ site, it serves as sample site. Uriel 2009-01-20 03:52:21 +01:00
  • 9f1f4ca37f Rename $wiki to $enable_wiki to be consistent with $enable_comments, also add a note that dirdir templates should move from lib/_apps/dirdir/ to apps/diridri/ Uriel 2009-01-20 03:38:48 +01:00
  • 69502370b3 Merge tags Uriel 2009-01-17 09:44:03 +01:00
  • fa7cff78cd Dirdir wiki engine updates, cleaned up some code, now one can save from preview page. Uriel 2009-01-17 09:43:31 +01:00
  • ee170cca69 Remove unused/debug code and rename comment var enable_comments Uriel 2009-01-17 09:42:24 +01:00
  • 062fe9a479 Cosmetic changes to default_master.tpl Uriel 2009-01-17 09:40:00 +01:00
  • b3d3f44c83 Move some wiki code into dirdir app! Uriel 2009-01-17 03:43:36 +01:00
  • 0fcaff04fe Fix cookie parsing if more than one cookie present, add optional user/loggin-info sidebar Uriel 2009-01-17 03:43:05 +01:00
  • ec151a9902 Make left sidebar into a list of handlers. Uriel 2009-01-17 03:05:19 +01:00
  • cfbe5850b2 Minor cosmetic css changes. Uriel 2009-01-17 03:04:43 +01:00
  • d458d1a89b Added tag LATEST-RELEASE for changeset 71e051f0e8e0 Uriel 2009-01-16 03:35:36 +01:00
  • 068e6ab699 New release Uriel 2009-01-16 03:35:36 +01:00
  • 9cb8bf97c9 Add comment on future issue for apps with 'synthetic' dirs. Uriel 2009-01-16 03:18:10 +01:00
  • 1f8874c269 Proper 404 for dirs too Uriel 2009-01-16 01:24:58 +01:00
  • 6e66e649b1 Fix handling of static /pub/ files. Uriel 2009-01-16 01:08:54 +01:00
  • 9d9bca8023 Add handling of static files for /pub/* Uriel 2009-01-14 00:36:32 +01:00
  • ca4feb95a4 Update atom and rss templates to work with new blagh format. Uriel 2009-01-13 03:20:30 +01:00
  • d4ecd11693 Blagh: improve handler setup for atom/rss feeds, also filter out blog posts with non-url-allowed path elements. Uriel 2009-01-13 03:19:45 +01:00
  • 96a115b37b Get rid of response_format which was only used by blagh feeds anyway, and we can emulate by setting $headers to nil plus adding a $res_tail var. Uriel 2009-01-13 03:18:19 +01:00
  • ae20a466a3 Various small cleanups: remove unused code, clarity and reliability fixes here and here, move code to more appropriate locations, improve some comments. Uriel 2009-01-12 02:07:31 +01:00
  • 76bd359a11 Remove some debug code, and fix a silly bug. Uriel 2009-01-11 19:52:48 +01:00
  • 954d1c773d Minor updates to initrc comments. Uriel 2009-01-11 07:41:24 +01:00
  • 70d30f4375 Move misplaced comment Uriel 2009-01-11 07:13:25 +01:00
  • 889e844d73 Fix blah to work with new handler interfaces. Remove outdated app-framework code. Clanup some of the fallback handler setting code. Uriel 2009-01-11 04:40:40 +01:00
  • e75232761a Handler interface reorg, take oportunity to cleanup default_master.tpl and move comments bits to bridge app. Uriel 2009-01-11 04:03:46 +01:00
  • 11900bdb0e - New static_file and select_mime functions. - Minor improvements to get_post_args, set status unless one of the requested args is present. Uriel 2009-01-11 04:02:07 +01:00
  • f785c96fbb Fix sitemap.tpl to use the new split dirfilter Uriel 2009-01-10 17:34:56 +01:00
  • 79c07a8d23 Handle static files! (Should only be used as a fallback if static files are not handled by httpd) Uriel 2009-01-10 05:23:44 +01:00
  • 24920f1c81 Move top header/title generation for werc.rc to default template. Uriel 2009-01-10 04:57:41 +01:00
  • c91a635ac2 Minor reorg of handler selection, move comment code to bridge app. Uriel 2009-01-09 03:08:02 +01:00
  • e3770969a9 Awk_buffer does seem to improve things a bit, but changed the buffer side to an empirically determined value. Uriel 2009-01-09 02:06:41 +01:00
  • c51c30029d Delete some debug code in a function that is not used yet. Uriel 2009-01-09 02:03:36 +01:00
  • b0cd0818d9 Very minor style fixes, and obfuscate local var in ll_add. Uriel 2009-01-08 16:48:09 +01:00
  • d01d89becf Add nested lists rc helper Uriel 2009-01-08 16:46:00 +01:00
  • 4eb8e0641e Minor optimizations and reliability improvments to fproc_cache. Uriel 2009-01-07 23:50:49 +01:00
  • 57865a60ec Make tabs/spaces indentation consistent. Uriel 2009-01-05 05:49:45 +01:00
  • 218accf465 Two other minor code formating changes for readability. Uriel 2009-01-05 05:48:23 +01:00
  • 2459e992ee Remove a debug tee(1) and split sidebar ls pipeline in three lines to make it more readable. Uriel 2009-01-05 05:46:37 +01:00
  • 1c388b2a48 Make perm redirect code a bit simpler and a bit less hideous. Uriel 2009-01-05 05:41:10 +01:00
  • d4cea460b5 Fix stupid bug in last commit. Uriel 2009-01-04 23:24:35 +01:00
  • 518f2f9685 Simplify and optimize some of the canonical-url-redirections. Uriel 2009-01-04 23:21:55 +01:00
  • 2b29543b68 Simplify genbody/set_handler and reorg some env vars, including moving sitedirs/sitedir out of default initrc. Uriel 2009-01-04 22:49:05 +01:00
  • a19758645c Tag merge. Uriel 2009-01-04 08:32:19 +01:00
  • 13c8137c76 Very minor dirfilter cleanups and some extra comments. Uriel 2009-01-04 07:57:13 +01:00
  • bfd31c5b37 Simplify .txt handler, and remove double spacing, if lines are too close we should use css to space them. Uriel 2009-01-04 03:59:52 +01:00
  • b3c6def71c More consistent use of dirfilter in sidebar code. This shoudl allow dots in path elements to show up in sidebar properly! Uriel 2009-01-03 02:02:50 +01:00
  • 39fa2f806a Style fixes to default template Uriel 2009-01-03 02:01:42 +01:00
  • a78bf23858 Added tag LATEST-RELEASE for changeset 2a3ffd2518b8 Uriel 2009-01-02 20:20:05 +01:00
  • 46addfb0ff New release Uriel 2009-01-02 20:20:05 +01:00
  • 58512f2e1f Delete some deprecated code left over from the old blog system. Uriel 2009-01-02 16:51:59 +01:00
  • d7edcd7bd9 Minnor change, merge two lines and add a comment from the old blog code. Uriel 2009-01-02 16:49:44 +01:00
  • 3e59183781 Fix handling of _werc/config in domain root. Uriel 2009-01-01 08:14:38 +01:00
  • 9582bcdeb9 Move $local_path deffinition to a more correct place. Uriel 2008-12-31 00:16:47 +01:00
  • 8b4b34c62d Minor code simplificaton. Uriel 2008-12-31 00:16:17 +01:00
  • 9fd9ddb7f5 Enable blagh app by default Uriel 2008-12-29 00:04:07 +01:00
  • 572290ba1f Update template to use new variable names. Uriel 2008-12-28 23:44:03 +01:00
  • 56a5fd5fa6 Fix blagh_init to fail when we should fail. Uriel 2008-12-28 23:43:15 +01:00
  • 0ab4235b09 Two small simplifications to app handling. Specially merge _test and _setup functions into a single _init. Uriel 2008-12-28 23:42:24 +01:00
  • bb40483f80 Remove blog-related code from werc.rc Make variable use more consistent: * $REQUEST_URI and $uri are replaced with $req_path * $body is replaced with $local_path Other simplifications and cleanups. Uriel 2008-12-28 23:40:57 +01:00
  • 7f7da84b09 Further progress with blagh app, atom feeds and rss feeds are mostly working. Uriel 2008-12-28 21:37:03 +01:00
  • 2028076c80 Rename $baseuri to $base_url Uriel 2008-12-28 20:20:48 +01:00
  • 7546c4f28b Replace 404_handler with a direct call to tpl_handler. Uriel 2008-12-28 11:52:57 +01:00
  • 9745991ff9 Minor comment cleanups. Uriel 2008-12-28 11:51:03 +01:00
  • 079d4b43e4 Source _werc/config files with their container dir as working directory (allows for relative references in config variables, for example: blaghDirs=(../people/*/blog/)). NOTE: this require some config files to be updated, specially ones with blogDirs in them, $sitedir/ references and full paths are not required anymore. Added two new global vars: $werc_root and $req_paths_list. Change sidebar menu generation to use $req_paths_list. Uriel 2008-12-27 11:53:58 +01:00
  • d01e553bab Make sure . is in $path, needed when sourcing config files so we can avoid the ./... dance. Uriel 2008-12-27 11:48:46 +01:00
  • 168d1c6074 Further simplification/cleanup. Uriel 2008-12-27 11:47:36 +01:00
  • 0eeaf87d2c New blagh app Uriel 2008-12-24 12:19:06 +01:00
  • 402427ec04 New function to pick 'metadata' out of new .md convention for attributes. Uriel 2008-12-24 12:18:44 +01:00
  • 0ba3e6c1d8 Move app handler before default dir listing handler Uriel 2008-12-24 12:18:05 +01:00
  • e2ee3bdf6e Replace stat(1) with mtime(1) (disabled code for now) Uriel 2008-12-24 09:36:52 +01:00
  • b9a3275c75 Added tag LATEST-RELEASE for changeset 9928c3b66873 Uriel 2008-12-21 10:15:12 +01:00
  • 842ce95003 New release Uriel 2008-12-21 10:15:12 +01:00
  • 32fed01916 Only call select_apps if enabled_apps is not null. Uriel 2008-12-21 09:47:08 +01:00
  • 322db9393d Add sample 'hello world' app and enabled_apps config variable. Uriel 2008-12-21 09:37:40 +01:00
  • 2928632eba Comment out unused line. Uriel 2008-12-21 09:37:14 +01:00
  • 7851c334b0 Style consistency fixes around bin/aux/* and bin/contrib/* Uriel 2008-12-21 00:13:53 +01:00
  • e54e3d34fb Explicitly call awk when running template.awk so we can use p9p's awk if available and improve portability to native Plan 9. Uriel 2008-12-21 00:08:49 +01:00
  • aeb7d2483a New html_handler that replaces gnu/sed with awk by sqweek, sorry for taking so long and thanks! Uriel 2008-12-20 22:56:49 +01:00
  • c10a7b7db1 Add timezone to blog posts date, thanks to dho for the original patch. Uriel 2008-12-20 22:36:25 +01:00
  • f6874376c1 Tiny style fix. Uriel 2008-12-20 22:29:32 +01:00
  • 7a3d963cc7 Reorg debug printouts a bit. Uriel 2008-12-20 13:31:19 +01:00
  • f1f653f876 Sitemap improvemnts and cleanups: Uriel 2008-12-20 13:20:31 +01:00
  • 11ead1335c Move trailing * executable market strpping to dirfilter. Uriel 2008-12-20 13:15:56 +01:00
  • 17225d69b4 Make coding style more consistent. Uriel 2008-12-20 06:32:37 +01:00