-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a WSGI middleware filter that can be used to run Diazo in a WSGI …
…pipeline svn path=/diazo/trunk/; revision=48910
- Loading branch information
Showing
17 changed files
with
1,388 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<rules | ||
xmlns="http://namespaces.plone.org/diazo" | ||
xmlns:css="http://namespaces.plone.org/diazo+css" | ||
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> | ||
|
||
<theme href="static/theme/index.html" /> | ||
|
||
<replace content="/html/head/title" theme="/html/head/title" /> | ||
|
||
<replace css:content="#content" css:theme="#content" if="$foo = 'bar'" /> | ||
<replace css:content="#extra" css:theme="#extra" href="/inc.html" /> | ||
|
||
</rules> |
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,29 @@ | ||
[server:main] | ||
use = egg:Paste#http | ||
host = 0.0.0.0 | ||
port = 5000 | ||
|
||
[composite:main] | ||
use = egg:Paste#urlmap | ||
/static = static | ||
/ = default | ||
|
||
[pipeline:default] | ||
pipeline = theme | ||
content | ||
|
||
[filter:theme] | ||
use = egg:diazo | ||
rules = %(here)s/rules.xml | ||
prefix = /static | ||
|
||
# Custom parameters | ||
foo = bar | ||
|
||
[app:content] | ||
use = egg:Paste#static | ||
document_root = %(here)s/static/content | ||
|
||
[app:static] | ||
use = egg:Paste#static | ||
document_root = %(here)s/static/theme |
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,3 @@ | ||
<div id="extra"> | ||
Extra | ||
</div> |
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,11 @@ | ||
<html> | ||
<head> | ||
<title>Content</title> | ||
</head> | ||
<body> | ||
|
||
<h1>Content title</h1> | ||
<div id="content">Content content</div> | ||
|
||
</body> | ||
</html> |
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,12 @@ | ||
<html> | ||
<head> | ||
<title>Theme</title> | ||
<link rel="stylesheet" href="./theme.css" /> | ||
</head> | ||
<body> | ||
|
||
<h1>Theme title</h1> | ||
<div id="content">Theme content</div> | ||
<div id="extra">Theme extra</div> | ||
</body> | ||
</html> |
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,3 @@ | ||
h1 { | ||
color: red; | ||
} |
Oops, something went wrong.