...

View Full Version : HTML preprocessors



OM2
05-21-2012, 03:56 AM
I am coding for jquerymobile
I wanted a 'HTML preprocessor'
I was told this is what I wanted

What I want: to have footer and header files in one common file
So, I'd maintain only these files and not have to update potentially 100's of individual HTML files

I've googled and the ONLY results I find are 'ancient' Linux/Unix command programs that seem to be overly complex or not really user friendly

Does anyone here have anything to recommend?

Thanks


OM

VIPStephan
05-21-2012, 09:21 AM
I suppose this has nothing to do with jQuery mobile specifically. Look into Server Side Includes (http://en.wikipedia.org/wiki/Server_Side_Includes) or PHP’s include() (http://php.net/manual/en/function.include.php) function.

OM2
05-21-2012, 01:57 PM
I suppose this has nothing to do with jQuery mobile specifically. Look into Server Side Includes (http://en.wikipedia.org/wiki/Server_Side_Includes) or PHP’s include() (http://php.net/manual/en/function.include.php) function.

thanks for the reply
an include is exactly what i want - but for html
there isn't an include functionality in the html5 spec
any ideas?

dan-dan
05-21-2012, 02:18 PM
You could use an iFrame. Personally, I'd go for the PHP include().

Donkey
05-21-2012, 02:20 PM
you can include html using either of the two methods suggested.

OM2
05-21-2012, 06:31 PM
you can include html using either of the two methods suggested.

not if ur working with JUST pure html files?

felgall
05-21-2012, 08:26 PM
not if ur working with JUST pure html files?

All HTML pre-processors run on the server and deliver pure HTML to the browser. If you use a pre-processor then you are not working with pure HTMl files on the server but whether you do or don't you still get pure HTML files in the browser.

The closest thing HTML itself has to an include is the <object> tag.

OM2
05-21-2012, 09:09 PM
All HTML pre-processors run on the server and deliver pure HTML to the browser. If you use a pre-processor then you are not working with pure HTMl files on the server but whether you do or don't you still get pure HTML files in the browser.

The closest thing HTML itself has to an include is the <object> tag.

my plan was't on the server - it was on the pc
i'm going to create something in perl to do what i want (i'll do a search to see if i can find something first though)

felgall
05-21-2012, 10:08 PM
my plan was't on the server - it was on the pc
i'm going to create something in perl to do what i want (i'll do a search to see if i can find something first though)

perl is no different from the other alternatives - it too will need to run on the server in order to deliver HTML to the browser.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum