NYCPHP Meetup

NYPHP.org

[nycphp-talk] CSS Variables

Justin Dearing zippy1981 at gmail.com
Wed Jun 18 12:22:26 EDT 2008


On Wed, Jun 18, 2008 at 11:05 AM, Damion Hankejh (ingk) <d at ingk.com> wrote:
> To gain the benefits of browser/proxy caching, trimmed down page size(s) and
> thus faster loading pages, CSS should be in its own file.  Just link to the
> file in the header of your view files using:
> <link rel='stylesheet' href='http://domain.com/css/gui.css'>

Actually, I was using smarty to generate per user custom stylesheets
as seperate css files not including it inline in the html. Yeah I
never did consider caching issues. As Tedd suggested in another email
I did set the header.

> However, if you want to keep stylesheets in your Smarty template, place it
> within {literal} ... {/literal} tags to force Smarty to ignore everything
> therein, including brackets.  JavaScript can also safely be left unparsed by
> Smarty in this way.
>
>
>
> _______________________________________________
> New York PHP Community Talk Mailing List
> http://lists.nyphp.org/mailman/listinfo/talk
>
> NYPHPCon 2006 Presentations Online
> http://www.nyphpcon.com
>
> Show Your Participation in New York PHP
> http://www.nyphp.org/show_participation.php
>



More information about the talk mailing list