1. Brian Mearns
  2. templ

Commits

Brian Mearns  committed 86a650d

Fixed some bugs in tbuiltin, and added license to html.itmpl

  • Participants
  • Parent commits 93bcefa
  • Branches default

Comments (0)

Files changed (2)

File templ/html.itmpl

View file
  • Ignore whitespace
-{v {:
+{#
+    Copyright 2012 Brian Mearns
+
+    This file is part of templ.
+
+    templ is free software: you can redistribute it and/or modify
+    it under the terms of the GNU Affero General Public License as published by
+    the Free Software Foundation, either version 3 of the License, or
+    (at your option) any later version.
+
+    templ is distributed in the hope that it will be useful,
+    but WITHOUT ANY WARRANTY; without even the implied warranty of
+    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+    GNU Affero General Public License for more details.
+
+    You should have received a copy of the GNU Affero General Public License
+    along with templ.  If not, see <http://www.gnu.org/licenses/>.
+}{
+}{v {:
 
     {set htmlesc {lambda {:
         {strrep > &gt;

File templ/tbuiltin.py

View file
  • Ignore whitespace
 
                 elif stmt in (templ.STMT_TEXT, templ.STMT_CEMBED) :
                     assert(isinstance(value, (str, unicode))), type(value)
-                    elements.append(ttypes.ttypes.String(value, filepos))
+                    elements.append(ttypes.String(value, filepos))
 
                 elif stmt == templ.STMT_LIST:
                     assert(isinstance(value, ttypes.List))
 
                 elif stmt in (templ.STMT_TEXT, templ.STMT_CEMBED) :
                     assert(isinstance(value, (str, unicode))), type(value)
-                    elements.append(ttypes.ttypes.String(value, filepos))
+                    elements.append(ttypes.String(value, filepos))
 
                 elif stmt == templ.STMT_LIST:
                     assert(isinstance(value, ttypes.List))