Evan Prodromou wrote:
Tommie Podzemski wrote:
Hi Devs,
Hey, Tommie!
Are there any plans for a template-system (think smarty) for Laconica?
While i think this could be quite the overhaul on how the system works
today, i strongly believe it's one of those features which should make
it to 1.0, if not earlier.
There are no plans for using a template system for Laconica. For
high-volume sites, we simply can't afford the overhead that dog-slow
templating systems like smarty bring.
My hope is that we can build a lightweight customization system with CSS
and hooks. So, for the layout of the page, you'd use CSS to move
elements around (say, moving the sidebar to the left of the page, or
whatever). This works now.
We'd use hooks to let you add or remove HTML to the existing menus or to
other parts of the page.
I think this would solve well over 95% of what people need to modify the
interface.
Not to mention that its quite good code-ethics to actually segregate
logic from presentation ;)
We already do that.
-Evan
Hi again,
Thanks for the reply.
I 100% agree with your argument that templating-system are resource-hogs
on a high-volume site, that said - i'm very curious on your thoughts in
regard of the hook-system.
How far done is the hook-system and could you give us some further
insight on how the plans are to implement it?
Regards,
Tommie
_______________________________________________
Laconica-dev mailing list
[email protected]
http://mail.laconi.ca/mailman/listinfo/laconica-dev