|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
DreamCrafter Smarty n00b
Joined: 12 Nov 2010 Posts: 4
|
Posted: Thu Jan 12, 2012 6:27 pm Post subject: Hacking Smarty (Headers) |
|
|
I've recently been hacking smarty so that it auto generates the <head> element of a HTML page. Is there a possibility that we could get this as an official part of smarty? |
|
Back to top |
|
rodneyrehm Administrator
Joined: 30 Mar 2007 Posts: 674 Location: Germany, border to Switzerland
|
Posted: Thu Jan 12, 2012 6:44 pm Post subject: |
|
|
What exactly have you done?! _________________ Twitter |
|
Back to top |
|
mohrt Administrator
Joined: 16 Apr 2003 Posts: 7368 Location: Lincoln Nebraska, USA
|
Posted: Thu Jan 12, 2012 8:55 pm Post subject: |
|
|
nope, but you are welcome to implement that for your own environment in a filter/plugin. |
|
Back to top |
|
DreamCrafter Smarty n00b
Joined: 12 Nov 2010 Posts: 4
|
Posted: Thu Jan 12, 2012 9:03 pm Post subject: |
|
|
Would you like me to post the changed code? |
|
Back to top |
|
mohrt Administrator
Joined: 16 Apr 2003 Posts: 7368 Location: Lincoln Nebraska, USA
|
Posted: Thu Jan 12, 2012 9:12 pm Post subject: |
|
|
why would Smarty do that? what you put in your templates is up to you. |
|
Back to top |
|
DreamCrafter Smarty n00b
Joined: 12 Nov 2010 Posts: 4
|
Posted: Thu Jan 12, 2012 9:22 pm Post subject: |
|
|
Having a auto generated <head> means that all you need to do is create the <body>.
The auto generated <head> can be provided with the title, style links, scripts, meta data etc.... |
|
Back to top |
|
mohrt Administrator
Joined: 16 Apr 2003 Posts: 7368 Location: Lincoln Nebraska, USA
|
Posted: Thu Jan 12, 2012 9:31 pm Post subject: |
|
|
typically you would create a header or layout template that includes your customized <head> content, etc. still dont' see how you gain anything by generating it. |
|
Back to top |
|
|
|
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
|