[fw-general] repeated stylesheets in html header

2010-11-01 Thread Steve Rayner
My layout contains the following; Titanium Application headLink()->appendStylesheet('/css/common.css') . "\n"?> headLink()->appendStylesheet('/css/header.css') . "\n"?> headLink()->appendStylesheet('/css/footer.css') . "\n"?> headLink()->appendStylesheet('/css/content.css') . "\n"?> headLink()->

Re: [fw-general] repeated stylesheets in html header

2010-11-01 Thread Christian Riesen
Hi Because you echo on an append. Change this: > headLink()->appendStylesheet('/css/common.css') . "\n"?> > headLink()->appendStylesheet('/css/header.css') . "\n"?> > headLink()->appendStylesheet('/css/footer.css') . "\n"?> > headLink()->appendStylesheet('/css/content.css') . "\n"?> > headLink()-

Re: [fw-general] repeated stylesheets in html header

2010-11-01 Thread Jurian Sluiman
Or chain the methods, which is even less code: headLink() ->appendStylesheet('/css/common.css'); ->appendStylesheet('/css/header.css'); ->appendStylesheet('/css/footer.css'); ->appendStylesheet('/css/content.css'); ->a

Re: [fw-general] repeated stylesheets in html header

2010-11-01 Thread Rafael
I suggest to create a view helper to scan and load all stylesheets :) Em 01/11/2010 20:14, Jurian Sluiman escreveu: Or chain the methods, which is even less code: headLink() ->appendStylesheet('/css/common.css'); ->appendStylesheet('/css/header.css');

[fw-general] Re: repeated stylesheets in html header

2010-11-01 Thread David Muir
Or use your favorite build tool to concatenate your css files into one on deployment :-) During development, just have your css file use @import statements to include the other css files. David Rafael wrote: > > > I suggest to create a view helper to scan and load all stylesheets :) > > --