I have a site with lots of pages in markdown.  I'd like to copy them into 
BW.  I think this strategy might work, but I don't know where to begin.  
First try would be to hack BW engine.php and then work towards a plugin.  I 
don't want to change the BW markup tables, I want the markdown pages to 
coexist in a mainly boltwire site.  Just making a little tweak so that some 
pages go through markdown processor instead of boltwire.
 
Here is strategy:
1) The markdown pages will include a page variable at the top like this:
/*
markdown: true
*/
Or some other method of identifying the page as markdown syntax.
 
2) When boltwire loads a page/zone and this "markdown" indicator is 
present, then boltwire simply does an $out=Markdown($rawpagesource), and 
then simply returns that output to the page/zone with no further boltwire 
markup processing.  (I have the Markdown function included in engine.php or 
config.php)
 
I understand that this removes a lot of boltwire funtionality for the 
page/zones, but it would solve a large problem for me, and it would allow 
the boltwire and markdown pages to coexist in the same site.  The markdown 
pages would primarily be in the main content zone anyway.  The rest of the 
site would be straight up boltwire.  
 
I am hoping it could be as simple as that, but I don't know where to change 
engine.php, or if this can be done in the config.php?  If it is really more 
complicated than I think, no problem....forget about it!
 

-- 
You received this message because you are subscribed to the Google Groups 
"BoltWire" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/boltwire.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to