Re:Aspen is a Python web server. Simplates are the main att...
by whit537 on Tuesday April 05, 2011 @01:39PM
(#2411874)
Ok, added links to Barry's site and to the Emacs docs: http://aspen.io/form-feed/
[ Parent
| on HN ]
Re:Aspen is a Python web server. Simplates are the main att...
by evangineer on Tuesday April 05, 2011 @06:16PM
(#2412993)
Wow, I had no idea that Emacs had commands specifically for navigating around the pages delimited by the form-feed character.
Going to see if I can find an Emacs mode that does the right thing in syntax highlighting the pages appropriately.
Re:Aspen is a Python web server. Simplates are the main att...
by evangineer on Tuesday April 05, 2011 @08:50PM
(#2413454)
I'm hoping that nXhtml mode and its support for Multiple Major Modes might do the trick here http://ourcomments.org/Emacs/nXhtml/doc/nxhtml.html
Re:Aspen is a Python web server. Simplates are the main att...
by whit537 on Wednesday April 06, 2011 @10:23AM
(#2415164)
Good find. "Another important feature is the ability to mix several languages in one buffer and get the correct syntax highlighting and indentation for each of them." It looks like they're inferring mode blocks based on things like "<?php>".
http://ourcomments.org/Emacs/nXhtml/doc/nxhtml.html#php
What is wanted for Aspen simplates is to use Python for the first two pages, and use the file extension to determine the mode/highlighting for the third page. The first two pages are optional.