Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

Re: [SMARTY] Some questions on some 'ancient' smarty issues
Hello Ivo!

Ivo Jansch wrote:

>-----BEGIN PGP SIGNED MESSAGE-----
>Hash: SHA1
>
>Hi all,
>
>I've been 'out of the loop' for a while (had to do some java stuff, not
>much time to play with smarty), but I'm back to Smarty now and I was
>wondering whether these issues have been addressed yet in any of the
>current releases or perhaps third-party add-ons:
>
> - A 'minirenderer' that includes a minimal amount of code just
>   enough to verify if there's a cached version of a template and
>   render that. (to save the overhead of including the compiler
>   and smarty base class on each pageload)
>
>

The compiler class does not get loaded unless something needs compiled.
The Smarty base class always gets loaded, although many things were
moved out into separate PHP files and loaded on demand. Use a PHP
op-code accelerator and most if this is pretty negligible anyways.

> - 'multi-stage rendering'. A long time ago, there were talks that this
>   was under development. The feature's supposed to take care of
>   multiple stages of rendering (compile tags, then a prefilter, then
>   the cache layer, then a dynamic layer (rendering all plugins that
>   may not be cached) and finally a postfilter. Plugins would then be
>   able to determine at what stage they would be invoked and rendered.
>
>

Although Smarty basically does this under the hood, there is no discreet
API to enguage the render-pipeline at any given point, which would be
the goal of this idea.

> - Dynamic plugins. In the past, there was only an include method to
>   include dynamic content that should not be cached. At some point,
>   there was a discussion whether plugins should be able to specify
>   whether they are cacheable or not. The idea behind this would be
>   that template designers would just use plugins, and not worry about
>   the technicality of 'does this have to be cached or not'.
>
>

Smarty has the ability to register custom block functions as non-cachable.

Report this thread to moderator Post Follow-up to this message
Old Post
Monte Ohrt
09-30-04 01:09 AM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

PHP Smarty Templates archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 05:40 PM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.