Experimental support for template inheritance in SimpleTemplate.
Experimental support for template inheritance in SimpleTemplate.

Use this in your inheriting template:
%rebase base_template args1=value1, arg2=value2
All passed arguments and the final output of this template will be available to base_template.

Within your base_template file, a call to %include without any arguments will include the output of the inheriting template.
%include

Example:

--> start.tpl
%rebase basehtml title="Start"
This is content

--> basehtml.tpl
<html>
  <head>
    <title>{{title}}</title>
  </head>
  <body>
    %include
  </body>
</html>

adragomir/bottle,kevinmel2000/bottle,taisa007/bottle-ja,hkmshb/bottle,oz123/bottle,ifduyue/bottle,myzhan/bottle,bottlepy/bottle,gaotongfei/bottle,defnull/bottle,CentricWebEstate/bottle,SmithSamuelM/bottle,samstav/bottle,kevintaw/bottle,ListFranz/bottle,prologic/bottle,CentricWebEstate/bottle,kevintaw/bottle,ifduyue/bottle,xsank/bottle,samstav/bottle,wangjun/bottle,enzzc/bottle,SmithSamuelM/bottle,Inndy/bottle,SamuelMarks/bottle,ListFranz/bottle,mefyl/bottle,StdioA/bottle,Inndy/bottle,AWFU/bottle,myzhan/bottle,catroot/bottle,hkmshb/bottle,hayate/bottle,adampresley/bottle,SamuelMarks/bottle,adampresley/bottle,mrdon/bottle,enzzc/bottle,fkazimierczak/bottle,khirayama/bottle,prologic/bottle,bottlepy/bottle,oz123/bottle,ericfrederich/bottle,mefyl/bottle,mrdon/bottle,ericfrederich/bottle,AWFU/bottle,fkazimierczak/bottle,defnull/bottle,StdioA/bottle,hayate/bottle,gaotongfei/bottle,kevinmel2000/bottle,taisa007/bottle-ja,wangjun/bottle,khirayama/bottle,catroot/bottle,adragomir/bottle,adragomir/bottle,Kjuly/bottle,Kjuly/bottle