Skip to content

Commit

Permalink
Add license and make some notes.
Browse files Browse the repository at this point in the history
  • Loading branch information
mikeboers committed Jul 6, 2010
1 parent 1ee32a1 commit 308c8d0
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 17 deletions.
24 changes: 24 additions & 0 deletions LICENSE.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
Copyright (c) 2010, Mike Boers
All rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
* Neither the name of the <organization> nor the
names of its contributors may be used to endorse or promote products
derived from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL <COPYRIGHT HOLDER> BE LIABLE FOR ANY DIRECT,
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29 changes: 12 additions & 17 deletions todo.txt
Original file line number Diff line number Diff line change
@@ -1,26 +1,21 @@

- Add LICENSE.md file.

- Extend the Mako loader class to automatically compile mako.
- Make sure it caches the results!

- Start thinking about exception handling (and making sense of it)
- Start thinking about exception handling (and making sense of it).

It would be very nice if there was a way to adapt exception tracebacks
similar to how Mako does it so that errors can be traced back to the
original HAML source.

- Rename nodes.Comment to nodes.HTMLComment.
- Rename nodes.Silent to nodes.HAMLComment.
- Rename nodes.Filtered to nodes.Filter.

- Blank lines should perhaps not be immediately tossed out.
eg.:
- Content = """one
two
- Consider renaming some node classes:
Comment -> HTMLComment
Silent -> HamlComment
Filtered -> Filter

three"""
= content

This will drop the blank line.
- Should standardize on either "Engine", "Compiler", or "Generator".

- The compiler should have backend specific methods for the following:
- The engine should have backend specific methods for the following:
- boolean attributes (ie HTML vs XHTML versions)
- expressions
- control statements (start and end)
Expand All @@ -34,6 +29,6 @@
- really simple one that uses #{...} syntax

Will likely need to not have arbitrary code inclusion, but I don't know
if Haml actually specifies that you can do this. I can scan expressions
if HAML actually specifies that you can do this. I can scan expressions
for control structures to add a little bit more to it but that may be it.

0 comments on commit 308c8d0

Please sign in to comment.