Hi All,

I am using smarty for a project and would like the templates to end  
with .tpl. So I added
template.extension=.tpl into build.properties. But now the agavi  
script would work out of the box to create the templates for me. I  
was wondering if the following change to the code_templates is feasible.

<!-- 404 template (original)-->
<available file="${templates.dir}/default_actions/templates/ 
Error404Success${template.extension}.tmpl"  
property="templates.dir.current" value="${templates.dir}" />
<copy file="${templates.dir.current}/default_actions/templates/ 
Error404Success${template.extension}.tmpl" tofile="${app.dir}/modules/ 
${module.404}/templates/${404.actionPath}Success$ 
{template.extension}" overwrite="false" />

<!-- 404 template (updated)-->
<available file="${templates.dir}/default_actions/templates/ 
Error404Success.php.tmpl" property="templates.dir.current" value="$ 
{templates.dir}" />
<copy file="${templates.dir.current}/default_actions/templates/ 
Error404Success.php.tmpl" tofile="${app.dir}/modules/${module.404}/ 
templates/${404.actionPath}Success${template.extension}"  
overwrite="false" />

I haven't tested this, but it should work.

Peace,
Shoan.

_______________________________________________
Agavi Dev Mailing List
[email protected]
http://lists.agavi.org/mailman/listinfo/dev

Reply via email to