silpa-discuss
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[silpa-discuss] template file names


From: Nithin Saji
Subject: [silpa-discuss] template file names
Date: Tue, 27 Aug 2013 22:52:13 +0530

Hello everyone,

Currently silpa-flask looks for a template file with the same name as the module  in the template folder of the modules. This is  not very flexible as things can break if the module is renamed and also doesn't allow for multiple templates for a module.

Also the  url endpoint of the modules are  currently decided by the silpa.config file which also won' t allow  for multiple templates for a single module.

This could be  solved  by adding the template file name  to the module and looping  throgh these template names and registering them. But in that   case silpa.config can't handle setting the endpoints.


eg: if the render module gets divided into wik2pdf template  and  complex script rendering template ,  where should the urls for each  of them be configured ? 

Should the current behaviour be kept as it is ? And how can this problem be solved without making the connfig file too complex ?

Nithin Saji

reply via email to

[Prev in Thread] Current Thread [Next in Thread]