Linking to the simplates page and not the main page[0] is a little confusing due to the way their docs are structured. A welcome addition to bottle[1] and flask[2] though.
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>".
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.
I do prefer the actual ^L though. I think sticking to printable characters and being copy and pastable from the web are good things for your project though, keep up the good work!
I'm disappointed by the lack of discussion regarding the Simplates concept. It does for webapp code organisation what Python's whitespace does for code layout.
This means that from the outset, you get more maintainable webapps even it starts out as a one file hack. That should more than compensate for having to figure out how to enter an obscure character into your code in your editor/IDE of choice.
For old Zope2 (and quixote) dev, looks promising and way easier than Django to get started on a project (and fun).
Could you maybe extend the tutorial with using tornado's template inheritance for basic page template. Like for repeating html, header, footer and perhaps navigation block. Tornado's documentation for that is in the template module so that kinda slows down the learning process.
There's an IRC chat and a Google Group that you can check out when you start on your project. Both are linked directly from the home page on http://aspen.io
@whit537, I really like how responsive you've been to questions and suggestions on this HN discussion. Gives one confidence that Aspen will be well maintained.
@whit537, you might want to add this link to your templating page as it gives more examples of how to use the Tornado template language : http://joshink.com/posts/9/
I'm doing some weekend hacking using Aspen. I'm finding that Aspen is staying out of the way and any issues are actually my own shortcomings. Currently in the process of adding some Ajax to my web app.
On windows you would need to type [Alt]+0+1+2. The numbers have to be on the numeric pad, which on some laptops without that would include further function keys to be setup to type the character.
Some editors will accept this and display a [FF] representation (notepad2, notepad++). Others just don't work (eclipse, wordpad, notepad). gVim can still use [Ctrl]+L
This is a really bad choice if your code can only be edited by some text editors. Perhaps a secondary string to use for splitting in addition?
Assuming one didn't care about clobbering that (you also get F6 there), I wonder if something could be done with a scancode map (see http://webpages.charter.net/krumsick/).
Seeing projects like this puts suggestion of hn quality going down to the back of my mind, really excited to try this out. Is there a framework which inspired this?
I evolved the page break discussion to talk about tool support and ugliness. Bottom line: "If you like simplates but dislike the page break, then you have until Aspen 1.0 to come up with something that works perfectly with existing tools /and/ isn’t ugly."
39 comments
[ 3.0 ms ] story [ 93.1 ms ] thread[0]http://aspen.io/ [1]http://bottlepy.org/docs/dev/ [2]http://flask.pocoo.org/
:^)
The "revelation" about Barry Warsaw being an Emacs user won't be news to those who have visited his home page! http://barry.warsaw.us/elisp/
Going to see if I can find an Emacs mode that does the right thing in syntax highlighting the pages appropriately.
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.
One idea would be to use an actual "^" "L", or at least give a warning somewhere if these are in a file.
Do you have any other ideas?
I do prefer the actual ^L though. I think sticking to printable characters and being copy and pastable from the web are good things for your project though, keep up the good work!
This means that from the outset, you get more maintainable webapps even it starts out as a one file hack. That should more than compensate for having to figure out how to enter an obscure character into your code in your editor/IDE of choice.
http://en.wikipedia.org/wiki/Comparison_of_text_editors#Key_...
For old Zope2 (and quixote) dev, looks promising and way easier than Django to get started on a project (and fun).
Could you maybe extend the tutorial with using tornado's template inheritance for basic page template. Like for repeating html, header, footer and perhaps navigation block. Tornado's documentation for that is in the template module so that kinda slows down the learning process.
I'll try this for my next project.
Templating page answered my question, thanks. Don't know how I managed to miss that... Perhaps you could add a link from the simplates page to it.
Approved your gg request. Have to do that for anti-spam. :^/
Some editors will accept this and display a [FF] representation (notepad2, notepad++). Others just don't work (eclipse, wordpad, notepad). gVim can still use [Ctrl]+L
This is a really bad choice if your code can only be edited by some text editors. Perhaps a secondary string to use for splitting in addition?
http://lifehacker.com/#!5302587/get-firefoxs-ctrl%252Bl-shor...
http://en.wikipedia.org/wiki/Table_of_keyboard_shortcuts
Assuming one didn't care about clobbering that (you also get F6 there), I wonder if something could be done with a scancode map (see http://webpages.charter.net/krumsick/).
http://aspen.io/page-break/
http://aspen.io/aspen.conf/
Is that acceptable?
http://aspen.io/simplates/