Changeset 3057
- Timestamp:
- 12/12/07 00:40:18 (13 months ago)
- Files:
-
- 1 modified
-
lang/javascript/blosxom.rhino/blosxom.rhino.js (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
lang/javascript/blosxom.rhino/blosxom.rhino.js
r3056 r3057 25 25 return b.datetime.valueOf() - a.datetime.valueOf(); 26 26 }); 27 28 var path_info = this.getenv("PATH_INFO") || "/";27 (this.getenv("PATH_INFO") || "/").match(/(.+?)(\.[^.]+)?$/); 28 var path_info = RegExp.$1, flavour = RegExp.$2 || this.config.default_flavour; 29 29 if (path_info.match(RegExp("^/(\\d{4})(?:/(\\d\\d)(?:/(\\d\\d))?)?"))) { 30 30 var year = +RegExp.$1, month = RegExp.$2 - 1, day = +RegExp.$3; … … 52 52 53 53 54 var template = new EJS(this._readLines("template .html").join("\n"));54 var template = new EJS(this._readLines("template"+flavour).join("\n")); 55 55 System.out.println(template.run({ 56 56 title : this.config.title, … … 110 110 111 111 new BlosxomRhino({ 112 title : "Blosxom.Rhino!", 113 data_dir : "data", 112 title : "Blosxom.Rhino!", 113 data_dir : "data", 114 default_flavour : ".html", 114 115 }).run();
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)