Commits

Andriy Kornatskyy committed 2993db9

Added demo versioning scheme.

  • Participants
  • Parent commits 3ef1a6a

Comments (0)

Files changed (4)

File demos/public/content/templates/shared/master.html

+<%!
+from public import __version__
+%>\
 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
 <html xmlns="http://www.w3.org/1999/xhtml">
     <head>
             </div>
             <div id="main">
                 <div id="placeholder">${self.body()}</div>
-                <div id="footer">Version 0.1.0.0</div>
+                <div id="footer">Version ${__version__}</div>
             </div>
         </div>
         <%include file="snippet/script.html"/>

File demos/public/src/public/__init__.py

+
+"""
+"""
+
+__version_info__ = (0, 1, 0, 0)
+__version__ = '.'.join(map(str, __version_info__))

File demos/template/content/templates/shared/master.html

+<%!
+from public import __version__
+%>\
 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
 <html xmlns="http://www.w3.org/1999/xhtml">
     <head>
             </div>
             <div id="main">
                 <div id="placeholder">${self.body()}</div>
-                <div id="footer">Version 0.1.0.0</div>
+                <div id="footer">Version ${__version__}</div>
             </div>
         </div>
         <%include file="snippet/script.html"/>

File demos/template/src/public/__init__.py

+
+"""
+"""
+
+__version_info__ = (0, 1, 0, 0)
+__version__ = '.'.join(map(str, __version_info__))