This repository has been archived by the owner on Nov 3, 2023. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* config.cs: Add Prefix (base directory for output), BlogTemplate
(previously hardcoded as the "template" file), EntryTemplate properties (previously hardcoded as the "entry" file). Add support for command-line handling (used for regression tests). * entry.test, template.test: Test input files (used for regression tests). * lb.cs: - Use new Config fields to control entry & file templates, prefix for output directory; - Change the RSS publication date to be the latest file time found, not the current time (helps make regression tests more consistent, as the pubdate won't be changing all the time in the RSS file). - Move entry_id handling into DayEntry.Id property (it's used in 2 places). - Permit rendering to a TextWriter - Don't open/read/close the file template all the time, but cache the file in memory (slight performance improvement). - Change RenderHtml() to use Translate(). Allows greater code sharing, consistency, easily adding new variables for replacement. - Add @BLOG_ENTRY_INDEX@ variable, a <ul/> list of all entries in a given page. - Create a .rss2 file for each category. * makefile: Add check and check-update targets. `check' runs the regression tests, while `check-update' updates the expected output. svn path=/trunk/lb/; revision=55834
- Loading branch information
Jonathan Pryor
committed
Jan 20, 2006
1 parent
929c5a7
commit 09a61dc
Showing
6 changed files
with
301 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
<p>@ENTRY_NAVIGATION@</p> | ||
<h2 id="@ENTRY_ID@" name="@ENTRY_ANCHOR@">@ENTRY_CAPTION</h2> | ||
@ENTRY_BODY@ | ||
<hr> | ||
<p>Test Variables:</p> | ||
<dl> | ||
<dt>\@BASEDIR\@:</dt> | ||
<dd>@BASEDIR@</dd> | ||
<dt>\@COPYRIGHT\@:</dt> | ||
<dd>@COPYRIGHT@</dd> | ||
<dt>\@ENTRY_ANCHOR\@:</dt> | ||
<dd>@ENTRY_ANCHOR@</dd> | ||
<dt>\@ENTRY_CAPTION\@:</dt> | ||
<dd>@ENTRY_CAPTION@</dd> | ||
<dt>\@ENTRY_CATEGORY\@:</dt> | ||
<dd>@ENTRY_CATEGORY@</dd> | ||
<dt>\@ENTRY_CATEGORY_PATHS\@:</dt> | ||
<dd>@ENTRY_CATEGORY_PATHS@</dd> | ||
<dt>\@ENTRY_DATECAPTION\@:</dt> | ||
<dd>@ENTRY_DATECAPTION@</dd> | ||
<dt>\@ENTRY_ID\@:</dt> | ||
<dd>@ENTRY_ID@</dd> | ||
<dt>\@ENTRY_NAVIGATION\@:</dt> | ||
<dd>@ENTRY_NAVIGATION@</dd> | ||
<dt>\@ENTRY_PATH\@:</dt> | ||
<dd>@ENTRY_PATH@</dd> | ||
<dt>\@ENTRY_PERMALINK\@:</dt> | ||
<dd>@ENTRY_PERMALINK@</dd> | ||
</dl> | ||
|
Oops, something went wrong.