Skip to content

Commit

Permalink
merged in changes to documentation site
Browse files Browse the repository at this point in the history
  • Loading branch information
joshourisman committed Feb 20, 2011
2 parents 2387590 + 245050e commit 2ded691
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions features/dynamic-pages.html
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -29,9 +29,11 @@ <h3>Dynamic Pages</h3>
<code>Dynamic Page</code> it is necessary to specify a <code>url</code> <code>Dynamic Page</code> it is necessary to specify a <code>url</code>
attribute in your config.yaml file. That URL must also contain a attribute in your config.yaml file. That URL must also contain a
placeholder for which the <code>Dynamic Page</code>'s slug will be placeholder for which the <code>Dynamic Page</code>'s slug will be
substituded. A Python <code>datetime</code> object containing the current substituded. If your page definition includes a <code>date</code> attribute
date and time is also made available to your URL. This is handled using it will also made available to your URL. For this to work properly, the
Python 3's string formatting, so the <code>url</code> for your <code>date</code> attribute must be specified as a timestamp like so:
<code>date: !!timestampe 2010-02-19</code>. This is handled using Python
3's string formatting, so the <code>url</code> for your
<code>Dynamic Page</code> should look something <code>Dynamic Page</code> should look something
like this: like this:
<code>url: 'blog/{date.year}/{date.month}/{date.day}/{slug}.html'</code>. <code>url: 'blog/{date.year}/{date.month}/{date.day}/{slug}.html'</code>.
Expand Down

0 comments on commit 2ded691

Please sign in to comment.