{ "info": { "author": "Kevin Smith", "author_email": "kevin@mcweekly.com", "bugtrack_url": null, "classifiers": [ "Framework :: Zope3" ], "description": "===================\nPluggable Templates\n===================\n\n\nThis package does two things. First, it does everything z3c.viewtemplate does\n-- seperate the view code layer from the template skin layer. Second, it\nallows an unlimited number of templates to be plugged into any view class.\n\nWhat's this for?\n~~~~~~~~~~~~~~~~\n\nMaking masterpages simple is hard work. Using macros is fairly complicated for\ndesigners to deal with. In fact they don't. Using z3c.viewtemplate with viewlets\nis fairly complicated for programmers to deal with. In fact I don't. So this\nis another evolutionary step to allow designers and programmersto work together\nwithout necessarily knowing or even liking each other.\n\nThis work relies heavily on the working code done by Jurgen for z3c.viewtemplate.\n\nA simple masterpage implementation\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\nThis is a simple masterpage implementation without using pluggabletemplates.\n\nbrowser.py::\n\n\tclass MyView(object):\n\n\t\tmasterpage = ViewTemplateFile('templates/masterpage.pt')\n\t\tsubpage = ViewTemplateFile('templates/content.pt')\n\n\t\tauthors = ['Roger Zelazny', 'Isaac Asimov', 'Robert Heinlien', 'J.R.R Tolkein']\n\n\t\tdef __call__(self):\n\t\t\treturn masterpage()\n\n templates/masterpage.pt::\n\n \t...\n \t
\n \t