TPL file

Place for questions and answers for all newcomers and new coders. This is a free for all forum, no question is too stupid and to noob.
Post Reply
User avatar
hallsofvallhalla
Site Admin
Posts: 12031
Joined: Wed Apr 22, 2009 11:29 pm

TPL file

Post by hallsofvallhalla »

I get to be a noob and ask what is a tpl file? Is this a smarty template file or something? It has php in it.
User avatar
vitinho444
Posts: 2825
Joined: Mon Mar 21, 2011 4:54 pm

Re: TPL file

Post by vitinho444 »

I don't know myself, but I think I found it: http://stackoverflow.com/questions/1808 ... web-design
My Company Website: http://www.oryzhon.com

Skype: vpegas1234
Sim
Posts: 412
Joined: Sat Dec 26, 2009 5:37 pm

Re: TPL file

Post by Sim »

tpl is short for template. It doesn't need to be for smarty. smarty accepts any file extension. .htm .html .tpl and prob some made up ones.

TPL use be used for php2.0 if I remember correctly.
oRPG Creator - Make Your Own Browser Game
oRPG Creator on Facebook
User avatar
vitinho444
Posts: 2825
Joined: Mon Mar 21, 2011 4:54 pm

Re: TPL file

Post by vitinho444 »

We are always learning :)
Thanks
My Company Website: http://www.oryzhon.com

Skype: vpegas1234
User avatar
hallsofvallhalla
Site Admin
Posts: 12031
Joined: Wed Apr 22, 2009 11:29 pm

Re: TPL file

Post by hallsofvallhalla »

Thanks!
Sim
Posts: 412
Joined: Sat Dec 26, 2009 5:37 pm

Re: TPL file

Post by Sim »

I personally prefer to use .htm or .html extensions with templating engines that allow it. If I use .tpl, I can't seem to open them in my browser if I need to look at it. =)
oRPG Creator - Make Your Own Browser Game
oRPG Creator on Facebook
User avatar
Jackolantern
Posts: 10893
Joined: Wed Jul 01, 2009 11:00 pm

Re: TPL file

Post by Jackolantern »

Sim wrote:I personally prefer to use .htm or .html extensions with templating engines that allow it. If I use .tpl, I can't seem to open them in my browser if I need to look at it. =)
Yes, I don't think you can open a template file directly in the browser since they require server-side processing. It is like trying to open a PHP file in the browser ;)
The indelible lord of tl;dr
User avatar
Epiales
Posts: 1119
Joined: Thu Aug 15, 2013 1:38 am

Re: TPL file

Post by Epiales »

Jackolantern wrote:
Sim wrote:I personally prefer to use .htm or .html extensions with templating engines that allow it. If I use .tpl, I can't seem to open them in my browser if I need to look at it. =)
Yes, I don't think you can open a template file directly in the browser since they require server-side processing. It is like trying to open a PHP file in the browser ;)
Yeah, you have to edit with a word processor to edit them.
Nothing fancy, but a work in progress!

http://gameplaytoday.net
User avatar
Jackolantern
Posts: 10893
Joined: Wed Jul 01, 2009 11:00 pm

Re: TPL file

Post by Jackolantern »

Yes, but I meant that a browser cannot directly open a Smarty template or really any other template for that matter (EJS, HAML, Jade, Razor, etc.). It requires server-side processing before it can be rendered in the browser.
The indelible lord of tl;dr
Sim
Posts: 412
Joined: Sat Dec 26, 2009 5:37 pm

Re: TPL file

Post by Sim »

Jackolantern wrote:Yes, but I meant that a browser cannot directly open a Smarty template or really any other template for that matter (EJS, HAML, Jade, Razor, etc.). It requires server-side processing before it can be rendered in the browser.

I know you can "open" smarty templating files in the browser. It just has the smarty syntax showing. I name my smarty template files with .htm or .html extensions so I can open them easier in the browser to view what the "output" is going to look like.
oRPG Creator - Make Your Own Browser Game
oRPG Creator on Facebook
Post Reply

Return to “Beginner Help and Support”