Skip to content

Commit

Permalink
Add multiline attributes example to reference doc
Browse files Browse the repository at this point in the history
  • Loading branch information
nosamanuel committed Oct 5, 2011
1 parent f6b88b3 commit d2b3b1d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,11 @@ is compiled to:

<html xmlns='http://www.w3.org/1999/xhtml' xml:lang='en' lang='en'></html>

Long attribute dictionaries can be separated into multiple lines:

%script{'type': 'text/javascript', 'charset': 'utf-8',
'href': '/long/url/to/javascript/resource.js'}

This comment has been minimized.

Copy link
@dillongreen

dillongreen Oct 5, 2011

great stuff... needs to go upstream asap :)

#### 'class' and 'id' attributes

The 'class' and 'id' attributes can also be specified as a Python tuple whose elements will be joined together. A 'class' tuple will be joined with " " and an 'id' tuple is joined with "_". For example:
Expand Down

0 comments on commit d2b3b1d

Please sign in to comment.