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

Consider tidy 5.0 for {strip}

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Smarty Development
View previous topic :: View next topic  
Author Message
CrazyTemplate
Smarty Rookie


Joined: 12 Sep 2011
Posts: 31

PostPosted: Wed Feb 03, 2016 1:34 am    Post subject: Consider tidy 5.0 for {strip} Reply with quote

Many years ago we used 'tidy' which is an HTML parser/cleaner/optimizer/minifier. Unfortunately, at around 2008 the project died away and web standards moved on to HTML5, which is not supported by tidy, thus tidy itself became deprecated and unusable.

Fortunately, the tidy project has moved on, it was updated (new website, moved to github) and now fully supports HTML5 and many other current web technologies.

Project homepage: http://www.html-tidy.org/

Would it be possible to allow Smarty to use the new tidy 5.0, to run when {strip} is used within templates? Maybe as a plugin extension, or officially support tidy?

What do you guys think?
Back to top
View user's profile Send private message Visit poster's website
AnrDaemon
Administrator


Joined: 03 Dec 2012
Posts: 1785

PostPosted: Wed Feb 03, 2016 1:51 am    Post subject: Reply with quote

I think that what you are requesting is not quite the purpose of {strip} block.
You CAN, of course, write a wrapper/modifier that runs template output through tidy for post-processing, shouldn't be too hard of a task.
Back to top
View user's profile Send private message
mohrt
Administrator


Joined: 16 Apr 2003
Posts: 7368
Location: Lincoln Nebraska, USA

PostPosted: Wed Feb 03, 2016 4:09 am    Post subject: Reply with quote

A tidy plugin would be useful. I doubt we want to support/maintain it within the Smarty distro itself, but a github repo with the plugin would be a good thing to contribute!
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Smarty Development All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


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