[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [MirageOS-devel] using cow
i'm having a few issues using cow to recreate mirage-decks and wonder whether i'm missing something really obvious. code at <http://github.com/mor1/mirage-decks>. each slideshow on decks is served up using reveal.js which itself ends up using an in-browser markdown renderer to render slides from markdown fragments between <section></section> tags. at the moment, each deck is in its own directory containing an (incomplete) index.html file which contains the slides as <section /> fragments plus all the images referred to. when a deck is requested i then read the relevant index.html file in, and insert it into a template which is an <:html< ... >> fragment. it's this insertion that's causing me problems. if i insert into the template as the anti-qutoation $str:deck$ then all the html in deck is escaped (< becomes < etc). obviously this doesn't render correctly. if i read in the index.html and parse it, then i can insert as $deck$ and that works but it's meant i've needed to do a fair amount of tidying up of the index.html files for all the slide decks to get past cow's parser. so-- is there a way to say "just insert this string verbatim" in a quotation (or anti-quotation or whatever the things between $$ are called in cow)? fwiw i've had similar issues with literal js between <script> </script> tags which i've overcome by pulling it out into a file and then serving that appropriately. i could probably do something similar here by just having the template as html fragments that are manually prepended/appended, but that feels like a kludge -- given that type-checking is good, being able to typecheck the template as valid html, even if i can't type-check the entire page, seems a good thing... :) -- Cheers, R. This message and any attachment are intended solely for the addressee and may contain confidential information. If you have received this message in error, please send it back to me, and immediately delete it. Please do not use, copy or disclose the information contained in this message or in any attachment. Any views or opinions expressed by the author of this email do not necessarily reflect the views of the University of Nottingham. This message has been checked for viruses but the contents of an attachment may still contain software viruses which could damage your computer system, you are advised to perform your own checks. Email communications with the University of Nottingham may be monitored as permitted by UK legislation. _______________________________________________ MirageOS-devel mailing list MirageOS-devel@xxxxxxxxxxxxxxxxxxxx http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |