Matthew Wilson <[EMAIL PROTECTED]> 07-08-10 12:29
I'm building a website that has a common header across lots of pages and I
want to source in that header. How do I do this with markdown?
Take the result from Markdown and put it into a template (which
contains the header etc), in it's simplest form it's just a
search and replace. For example:
theTemplate = "<html> .... <body> .... ##PageContent## ... </html>
print searchAndReplace(theTemplate, "##PageContent##", Markdown(
pageContent ) )
Something like that.
jem
--
Jan Erik Moström, www.mostrom.pp.se
_______________________________________________
Markdown-Discuss mailing list
[email protected]
http://six.pairlist.net/mailman/listinfo/markdown-discuss