Smarty Forum Index Smarty
The discussions here are for Smarty, a template engine for the PHP programming language.

{indent}

 
Post new topic   Reply to topic    Smarty Forum Index -> Smarty 3
View previous topic :: View next topic  
Author Message
4485670
Smarty n00b


Joined: 27 Apr 2009
Posts: 2

PostPosted: Mon Apr 27, 2009 3:34 pm    Post subject: {indent} Reply with quote

Code:

{strip}
 <whatever>

  <issexy>
   <stays>sexy</sexy>
  </issexy>                               </whatever>
{/strip}


will output to:

Code:
<whatever><issexy><stays>sexy</sexy></issexy></whatever>


Code:

{indent}
 <whatever>
  <issexy>
   <stays>sexy</sexy>
  </issexy>
 </whatever>
{/indent}


will output to:

Code:

<whatever>
  <issexy>
     <stays>
        sexy
     </sexy>
  </issexy>
</whatever>


i dunno maybe thats sexy? Laughing
i would like it!
Back to top
View user's profile Send private message
mohrt
Administrator


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

PostPosted: Mon Apr 27, 2009 3:39 pm    Post subject: Reply with quote

It would probably be called {tidy}{/tidy}, and be a wrapper for the PHP Tidy PECL extension. This is not installed in PHP by default.
Back to top
View user's profile Send private message Visit poster's website
yarco
Smarty Regular


Joined: 20 Mar 2009
Posts: 39

PostPosted: Fri Jul 17, 2009 7:36 am    Post subject: Reply with quote

oh? if such functions would be included in 3th plugin, i think GeShi should also be included too.
{GeShi}
// php code here...
{/GeShi}

Twisted Evil
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Smarty Forum Index -> Smarty 3 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