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

Plugin 'loadJS' used to merge JS files into one single file

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


Joined: 22 May 2015
Posts: 3

PostPosted: Mon Dec 21, 2015 3:54 pm    Post subject: Plugin 'loadJS' used to merge JS files into one single file Reply with quote

Hello everyone,

I could not quickly find any plugin which allows me a simple concatenate of multi JS files into a single file.

Thats why I built up this little helper:
https://github.com/ole1986/smarty-plugin-loadJS

LAST UPDATE: 2015-12-22


Last edited by intuz on Tue Dec 22, 2015 1:50 pm; edited 2 times in total
Back to top
View user's profile Send private message
AnrDaemon
Administrator


Joined: 03 Dec 2012
Posts: 1568

PostPosted: Mon Dec 21, 2015 4:53 pm    Post subject: Reply with quote

How is this a Smarty question?
Back to top
View user's profile Send private message
mohrt
Administrator


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

PostPosted: Mon Dec 21, 2015 8:39 pm    Post subject: Reply with quote

AnrDaemon wrote:
How is this a Smarty question?


It is not, he is promoting a plugin he created, and aptly in the "plugins" section of the forum as he should be.
Back to top
View user's profile Send private message Visit poster's website
AnrDaemon
Administrator


Joined: 03 Dec 2012
Posts: 1568

PostPosted: Mon Dec 21, 2015 11:42 pm    Post subject: Reply with quote

Well, I don't see, how it fits Smarty at all.
As plugin, tool, or whatever.
Back to top
View user's profile Send private message
intuz
Smarty n00b


Joined: 22 May 2015
Posts: 3

PostPosted: Tue Dec 22, 2015 1:49 pm    Post subject: Reply with quote

AnrDaemon wrote:
Well, I don't see, how it fits Smarty at all.
As plugin, tool, or whatever.


Can you please not be a child and explain why it does not fit?
Back to top
View user's profile Send private message
AnrDaemon
Administrator


Joined: 03 Dec 2012
Posts: 1568

PostPosted: Tue Dec 22, 2015 9:15 pm    Post subject: Reply with quote

Because PHP is a server language, and JS is a client language.
Back to top
View user's profile Send private message
mohrt
Administrator


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

PostPosted: Wed Dec 23, 2015 4:39 am    Post subject: Reply with quote

AnrDaemon wrote:
Because PHP is a server language, and JS is a client language.


The OP is referring to a Smarty plugin. The plugin combines JS files to a single file to minimize HTTP connections. I don't see the problem here.
Back to top
View user's profile Send private message Visit poster's website
AnrDaemon
Administrator


Joined: 03 Dec 2012
Posts: 1568

PostPosted: Wed Dec 23, 2015 4:56 pm    Post subject: Reply with quote

Why he's not doing it at the deployment stage? There's a shitload of tools for this task.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Smarty Forum Index -> Plugins 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