Re: Die Zukunft von Serendipity
Posted: Wed Dec 22, 2010 11:01 am
Smarty3 ist weitgehend kompatibel, vollständig in php5 geschrieben und IMHO eigentlich nur ein Gewinn.
Überblicke:
http://www.smarty.net/v3_overview (en)
http://it-republik.de/php/artikel/Neue- ... ml?print=1 (de)
Benchmarks:
http://blogs.kd2.org/bohwaz/?2009/09/30 ... te-vs-dwoo
http://cedric.emisfr.info/en/tag/smarty-vs-dwoo/
Alternativen:
bei http:// dwoo.org/ müsste man erst noch prüfen wie es um die Kompatibilität steht. Ansonsten ist dies eine interessante Alternative.
Migrating:
http:// smarty-php.googlecode.com/svn/trunk/distribution/SMARTY2_BC_NOTES
(leider nur 4 vollständige links erlaubt, bitte zusammensetzen)
und hier was für unsere Frontendler
Fröhliche Weihnachten YL!
== newline at {if} tags ==
A \n was added to the compiled code of the {if},{else},{elseif},{/if} tags to get output of newlines as expected by the template source.
If one of the {if} tags is at the line end you will now get a newline in the HTML output.
und
== Delimiters and whitespace ==
Delimiters surrounded by whitespace are no longer treated as Smarty tags.
Therefore, { foo } will not compile as a tag, you must use {foo}. This change
Makes Javascript/CSS easier to work with, eliminating the need for {literal}.
This can be disabled by setting $smarty->auto_literal = false;
Ian
Überblicke:
http://www.smarty.net/v3_overview (en)
http://it-republik.de/php/artikel/Neue- ... ml?print=1 (de)
Benchmarks:
http://blogs.kd2.org/bohwaz/?2009/09/30 ... te-vs-dwoo
http://cedric.emisfr.info/en/tag/smarty-vs-dwoo/
Alternativen:
bei http:// dwoo.org/ müsste man erst noch prüfen wie es um die Kompatibilität steht. Ansonsten ist dies eine interessante Alternative.
Migrating:
http:// smarty-php.googlecode.com/svn/trunk/distribution/SMARTY2_BC_NOTES
(leider nur 4 vollständige links erlaubt, bitte zusammensetzen)
und hier was für unsere Frontendler
== newline at {if} tags ==
A \n was added to the compiled code of the {if},{else},{elseif},{/if} tags to get output of newlines as expected by the template source.
If one of the {if} tags is at the line end you will now get a newline in the HTML output.
und
== Delimiters and whitespace ==
Delimiters surrounded by whitespace are no longer treated as Smarty tags.
Therefore, { foo } will not compile as a tag, you must use {foo}. This change
Makes Javascript/CSS easier to work with, eliminating the need for {literal}.
This can be disabled by setting $smarty->auto_literal = false;
Ian