flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From erikdebr...@apache.org
Subject svn commit: r1395013 - in /incubator/flex/site/trunk: lib/path.pm templates/flex_header.html templates/flex_insert.mdtext templates/flex_page.html
Date Sat, 06 Oct 2012 11:54:15 GMT
Author: erikdebruin
Date: Sat Oct  6 11:54:15 2012
New Revision: 1395013

URL: http://svn.apache.org/viewvc?rev=1395013&view=rev
Log:
Working on the new Flex project site.

Added:
    incubator/flex/site/trunk/templates/flex_header.html
    incubator/flex/site/trunk/templates/flex_insert.mdtext
Modified:
    incubator/flex/site/trunk/lib/path.pm
    incubator/flex/site/trunk/templates/flex_page.html

Modified: incubator/flex/site/trunk/lib/path.pm
URL: http://svn.apache.org/viewvc/incubator/flex/site/trunk/lib/path.pm?rev=1395013&r1=1395012&r2=1395013&view=diff
==============================================================================
--- incubator/flex/site/trunk/lib/path.pm (original)
+++ incubator/flex/site/trunk/lib/path.pm Sat Oct  6 11:54:15 2012
@@ -8,6 +8,7 @@ our @patterns = (
 	[qr!\.htm$!, html_page => { template => "html_page.html" }],
     [qr!\.chtml$!, html_page => { template => "no_template.html" }],
     [qr!\.fhtml$!, single_narrative => {
+        header => "flex_header.html",
         template => "flex_page.html",
         footer => "flex_footer.html"
     }],

Added: incubator/flex/site/trunk/templates/flex_header.html
URL: http://svn.apache.org/viewvc/incubator/flex/site/trunk/templates/flex_header.html?rev=1395013&view=auto
==============================================================================
--- incubator/flex/site/trunk/templates/flex_header.html (added)
+++ incubator/flex/site/trunk/templates/flex_header.html Sat Oct  6 11:54:15 2012
@@ -0,0 +1,19 @@
+<!-- start header -->
+
+<!DOCTYPE html>
+
+<html>
+<head>
+    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
+
+    <title>Apache Flex SDK</title>
+
+    <link href="/flex/css/flex_again.css" rel="stylesheet" type="text/css">
+
+</head>
+
+<body>
+  
+    <h1>{% block title %}{{ headers.title }}{% endblock %}</h1>
+
+<!-- end header -->
\ No newline at end of file

Added: incubator/flex/site/trunk/templates/flex_insert.mdtext
URL: http://svn.apache.org/viewvc/incubator/flex/site/trunk/templates/flex_insert.mdtext?rev=1395013&view=auto
==============================================================================
--- incubator/flex/site/trunk/templates/flex_insert.mdtext (added)
+++ incubator/flex/site/trunk/templates/flex_insert.mdtext Sat Oct  6 11:54:15 2012
@@ -0,0 +1,5 @@
+<!-- start insert -->
+
+<h1>INSERT</h1>
+
+<!-- end insert -->
\ No newline at end of file

Modified: incubator/flex/site/trunk/templates/flex_page.html
URL: http://svn.apache.org/viewvc/incubator/flex/site/trunk/templates/flex_page.html?rev=1395013&r1=1395012&r2=1395013&view=diff
==============================================================================
--- incubator/flex/site/trunk/templates/flex_page.html (original)
+++ incubator/flex/site/trunk/templates/flex_page.html Sat Oct  6 11:54:15 2012
@@ -1,6 +1,4 @@
-{% if flex_header %}
-{{ flex_header }}
-{% endif %}
+{% include header %}
 <!-- start content -->
 
     <div id="flex-content">
@@ -8,6 +6,9 @@
              the variable 'content' after it has been filtered through the 
              'markdown' filter -->
          {% block notice %}{{ headers.notice }}{% endblock %}
+         {% if flex_insert %}
+            {% autoescape off %}{{ flex_insert|markdown }}{% endautoescape %}
+         {% endif %}
          {% block content %}{{ content|markdown }}{% endblock %}
     </div>
 



Mime
View raw message