diff --git a/LICENSE b/LICENSE new file mode 100644 index 00000000..e4c5a28c --- /dev/null +++ b/LICENSE @@ -0,0 +1,7 @@ +copyright (c) 2006 Hampton Catlin + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/README b/README index 26322bfc..4cff685c 100644 --- a/README +++ b/README @@ -16,6 +16,15 @@ dynamic content. * Interpolates Ruby code * Implements Rails templates with the .haml extension +== Authors + +HAML was originally created by Hampton Catlin (hcatlin). Help with the +Ruby On Rails implementation by Jeff Hardy (packagethief). + +If you use this software, you must pay Hampton a compliment. Say something +nice about it. Beyond that, the implementation is licensed under the MIT +License. Ok, fine, I guess that means compliments aren't *required*. + == Formatting Haml is sensitive to spacing and indentation; it uses nesting to convey @@ -30,11 +39,11 @@ using two spaces. Remember, spaces are not the same as tabs. Example: is compiled to: -
+

Eugene Mumbai

-
@@ -54,7 +63,7 @@ is compiled to: - + Hey there @@ -65,7 +74,7 @@ self-closing tag, use the forward slash character. Example: %br/ # =>
%meta{:http-equiv => 'Content-Type', :content => 'text/html'} - # => + # => HTML div elements are assumed when no %tag is present and the line is preceeded by either the # or the . characters. This convention @@ -84,8 +93,8 @@ is the same as: and is comiled to: -
-
Broken record album
+
+
Broken record album
There is a shortcut when you want to specify either the id or class attributes @@ -98,9 +107,9 @@ of an element: follow the element name with either the # or the is compiled to: -
- Chicken Fried -

The magical fruit

+
+ Chicken Fried +

The magical fruit

=== Specifying a document type @@ -153,9 +162,9 @@ is compiled to: Teen Wolf (1985) -
+

A highschooler discovers that he is a werewolf

-
    +
    • Scott Howard
    • Rupert 'Stiles' Stilinski
    • Lisa 'Boof' Marconi
    • @@ -188,10 +197,10 @@ method call will be inserted into the stream. Example: is be compiled to: -
      -
      +
      +

      Teen Wolf

      - Home + Home
      @@ -200,3 +209,4 @@ is be compiled to: --- Copyright (c) 2006 Hampton Catlin +Licensed under the MIT License