[Orgmode] HTML export without all div ... tags

2009-09-25 Thread Detlef Steuer
Hi! I'm in the process of adapting cmsimple (www.cmsimple.dk) to use our university's corporate design. Cmsimple in its core is a php script, which takes _one_ html file and creates the complete layout of a site on the fly while splitting the file apart at h[123] levels. Now I want to create

scripting challenge (was: Re: [Orgmode] HTML export without all div ... tags)

2009-09-25 Thread Giovanni Ridolfi
If I could get org-mode to export pure html without all the div tags I think I am done. I guess the easiest would be to just post-process the html file produced by Org.  For example with perl (untested): perl -ap -e 's/div [^]*//g' orgoutput.html simple.html [OT] comp.perl.group ;-)

Re: scripting challenge (was: Re: [Orgmode] HTML export without all div ... tags)

2009-09-25 Thread Carsten Dominik
Hi Giovanni, good catch, no, it does not. This will: perl -ap -e 's/div [^]*|\/div//g' orgoutput.html simple.html Many divs may be in the same ling because of the /g switch on the substitution command. It causes the rest of the line after the match to be parsed again. - Carsten On