Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

Search found 8 matches
Smarty Forum Index
Author Message
  Topic: HTML minifying
KakkArlak

Replies: 15
Views: 79867

PostForum: Feature Requests   Posted: Mon Dec 13, 2010 2:05 pm   Subject: HTML minifying
Put this in your template file

{strip}
... your template ...
{/strip}

If you dont want this you can deactivate strip

{* strip *}
... your template ...
{ ...
  Topic: HTML minifying
KakkArlak

Replies: 15
Views: 79867

PostForum: Feature Requests   Posted: Mon Dec 13, 2010 12:09 pm   Subject: HTML minifying
Oh, right, I actually didn't know about that one..

Only problem with that is, I'd have to manually put those in? And I if I for some reason want to turn it off, I'd have to manually do so, instead ...
  Topic: HTML minifying
KakkArlak

Replies: 15
Views: 79867

PostForum: Feature Requests   Posted: Mon Dec 13, 2010 7:13 am   Subject: HTML minifying
Wouldn't it be nice to have HTML minifying included in Smarty ?

E.g., Some property :
$smarty->minifyHtml = true;

and then the display/fetch minify's the output html if the above property is ...
  Topic: Smarty caching
KakkArlak

Replies: 10
Views: 19009

PostForum: Plugins   Posted: Tue Dec 07, 2010 10:16 pm   Subject: Smarty caching
ah okay, I would've wanted to keep all my caching in smarty. But if I can't do that then I'll just have to make another plan.
  Topic: Smarty caching
KakkArlak

Replies: 10
Views: 19009

PostForum: Plugins   Posted: Tue Dec 07, 2010 8:58 pm   Subject: Smarty caching
Yes, that's the other question I had.

If I use nocache tags around the plugins, how would I then cache the plugin inside? ( if even possible )
  Topic: Smarty caching
KakkArlak

Replies: 10
Views: 19009

PostForum: Plugins   Posted: Tue Dec 07, 2010 8:44 pm   Subject: Smarty caching
Yes, it does work like that.

It's

{page_contents ...some parameters...}

but, and I read about setting it as "not cache" and whatever on registering the plugin ... but what I'm confu ...
  Topic: Smarty caching
KakkArlak

Replies: 10
Views: 19009

PostForum: Plugins   Posted: Tue Dec 07, 2010 8:35 pm   Subject: Smarty caching
Yes, I am doing that. I'm not sure I understand?

I have cache id's on everything, and I group my templates.. but these "plugins" showing content is seperate. Probably 5-6 on each page. ...
  Topic: Smarty caching
KakkArlak

Replies: 10
Views: 19009

PostForum: Plugins   Posted: Tue Dec 07, 2010 8:27 pm   Subject: Smarty caching
Hi,

So I've got caching set up for all my pages, etc etc.

I've got a custom plugin that display's content from a databases on every page. How can I cache those plugins individually ? Instead o ...
 
Page 1 of 1
All times are GMT
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP