Smarty Forum Index Smarty
The discussions here are for Smarty, a template engine for the PHP programming language.
Command line output for Smarty::compileAllTemplates()

 
Post new topic   Reply to topic    Smarty Forum Index -> Feature Requests
View previous topic :: View next topic  
Author Message
Juje007
Smarty Rookie


Joined: 20 Jan 2012
Posts: 5
Location: Belgium, Londerzeel

PostPosted: Tue Jul 24, 2012 3:08 pm    Post subject: Command line output for Smarty::compileAllTemplates() Reply with quote

Hey everyone,

I was creating an command line interface for my app when I discovered that Smarty::compileAllTemplates() is only able to echo HTML data which is not really friendly in a command line interface.
So I started looking how to change this and the only way possible to do this is hard coding it in in the function which is not really a requirement.
So than I thought that maybe this could be implemented in one of the next versions of Smarty.
So give your feedback or another idea on how to do this.

~Juje007

Ps. I already tried Output Buffering Control but than you loose the live feeling.
Back to top
View user's profile Send private message MSN Messenger
mohrt
Administrator


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

PostPosted: Tue Jul 24, 2012 9:29 pm    Post subject: Reply with quote

I'm not sure this should output anything, it should compile templates into the compile directory. Does it not do that? What does the stdout look like?
Back to top
View user's profile Send private message Visit poster's website
U.Tews
Administrator


Joined: 22 Nov 2006
Posts: 4673
Location: Hamburg / Germany

PostPosted: Wed Jul 25, 2012 6:54 pm    Post subject: Reply with quote

compileAllTemplates does output a log which templates get compiled. It does output '<br>' to control linebreak.
So adding '\n' should help.

I will put it on the todo list.
Back to top
View user's profile Send private message
Juje007
Smarty Rookie


Joined: 20 Jan 2012
Posts: 5
Location: Belgium, Londerzeel

PostPosted: Fri Jul 27, 2012 7:10 pm    Post subject: Reply with quote

Thank you very much Smile.

~Juje007
Back to top
View user's profile Send private message MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    Smarty Forum Index -> Feature Requests 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