Changeset 93:fd2e11a1c369 in documentViewer for zpt


Ignore:
Timestamp:
Apr 9, 2010, 6:33:53 PM (14 years ago)
Author:
casties
Branch:
default
Message:

more changed templates, now with metal:use-macro
zogilib mostly working

Location:
zpt
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • zpt/page_main_text.zpt

    r90 r93  
    1 <tal:block tal:define="pageinfo python:options.get('pageinfo',None); docinfo python:options.get('docinfo',None)">
    2   <div tal:content="structure python:here.getTextPage(mode='text',pn=pageinfo['current'],docinfo=docinfo)"></div>
    3 </tal:block>
     1<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
     2    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
     3<html xmlns="http://www.w3.org/1999/xhtml">
     4<head>
     5  <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
     6  <!--  block used for definitions and scripts in head -->
     7  <metal:block metal:define-macro="head">
     8  </metal:block>
     9</head>
     10<body>
     11<!-- block used for main content area -->
     12  <metal:block metal:define-macro="main">
     13    <div tal:content="structure python:here.getTextPage(mode='text',pn=pageinfo['current'],docinfo=docinfo)"></div>
     14  </metal:block>
     15</body>
     16</html>
  • zpt/page_main_text_dict.zpt

    r90 r93  
    1 <tal:block tal:define="pageinfo python:options.get('pageinfo',None); docinfo python:options.get('docinfo',None)">
    2   <div tal:content="structure python:here.getTextPage(mode='text_dict',pn=pageinfo['current'],docinfo=docinfo)"></div>
    3 </tal:block>
     1<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
     2    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
     3<html xmlns="http://www.w3.org/1999/xhtml">
     4<head>
     5  <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
     6  <!--  block used for definitions and scripts in head -->
     7  <metal:block metal:define-macro="head">
     8  </metal:block>
     9</head>
     10<body>
     11  <!-- block used for main content area -->
     12  <metal:block metal:define-macro="main">
     13    <div tal:content="structure python:here.getTextPage(mode='text_dict',pn=pageinfo['current'],docinfo=docinfo)"></div>
     14  </metal:block>
     15</body>
     16</html>
Note: See TracChangeset for help on using the changeset viewer.