mirror of
https://github.com/haml/haml.git
synced 2022-11-09 12:33:31 -05:00
Adding docs for == to trunk.
git-svn-id: svn://hamptoncatlin.com/haml/trunk@495 7063305b-7217-0410-af8c-cdc13e5119b9
This commit is contained in:
parent
7226e478b5
commit
0ae8800027
1 changed files with 14 additions and 0 deletions
14
lib/haml.rb
14
lib/haml.rb
|
@ -537,6 +537,20 @@ $LOAD_PATH << dir unless $LOAD_PATH.include?(dir)
|
|||
# hi there reader!
|
||||
# yo
|
||||
# </p>
|
||||
#
|
||||
# You can also use two equal signs, <tt>==</tt>,
|
||||
# along with conventional Ruby string-embedding syntax
|
||||
# to easily embed Ruby code in otherwise static text.
|
||||
# For example:
|
||||
#
|
||||
# %p
|
||||
# == 1 + 1 = #{1 + 1}
|
||||
#
|
||||
# is compiled to:
|
||||
#
|
||||
# <p>
|
||||
# 1 + 1 = 2
|
||||
# </p>
|
||||
#
|
||||
# ==== -
|
||||
#
|
||||
|
|
Loading…
Reference in a new issue