TPL file
- hallsofvallhalla
- Site Admin
- Posts: 12023
- Joined: Wed Apr 22, 2009 11:29 pm
TPL file
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.
- vitinho444
- Posts: 2819
- Joined: Mon Mar 21, 2011 4:54 pm
Re: TPL file
I don't know myself, but I think I found it: http://stackoverflow.com/questions/1808 ... web-design
Re: TPL file
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.
TPL use be used for php2.0 if I remember correctly.
- vitinho444
- Posts: 2819
- Joined: Mon Mar 21, 2011 4:54 pm
Re: TPL file
We are always learning
Thanks
Thanks
Re: TPL file
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. =)
- Jackolantern
- Posts: 10891
- Joined: Wed Jul 01, 2009 11:00 pm
Re: TPL file
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 browserSim 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. =)
The indelible lord of tl;dr
Re: TPL file
Yeah, you have to edit with a word processor to edit them.Jackolantern wrote: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 browserSim 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. =)
- Jackolantern
- Posts: 10891
- Joined: Wed Jul 01, 2009 11:00 pm
Re: TPL file
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
Re: TPL file
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.