1
0
Fork 0
mirror of https://github.com/haml/haml.git synced 2022-11-09 12:33:31 -05:00

Replacing HAML with Haml.

git-svn-id: svn://hamptoncatlin.com/haml/trunk@228 7063305b-7217-0410-af8c-cdc13e5119b9
This commit is contained in:
nex3 2006-12-16 23:13:01 +00:00
parent 0165623325
commit 3f0c2215e1
7 changed files with 12 additions and 12 deletions

View file

@ -14,7 +14,7 @@ end
# ----- Benchmarking -----
temp_desc = <<END
Benchmark HAML against ERb.
Benchmark haml against ERb.
TIMES=n sets the number of runs. Defaults to 100.
END
@ -130,7 +130,7 @@ unless ARGV[0] == 'benchmark'
# ----- Profiling -----
temp_desc = <<-END
Run a profile of HAML.
Run a profile of haml.
TIMES=n sets the number of runs. Defaults to 100.
FILE=n sets the file to profile. Defaults to 'standard'.
END

View file

@ -3,7 +3,7 @@ require 'haml/helpers'
require 'haml/buffer'
module Haml
# This is the class where all the parsing and processing of the HAML
# This is the class where all the parsing and processing of the haml
# template is done. It can be directly used by the user by creating a
# new instance and calling to_html to render the template. For example:
#
@ -202,7 +202,7 @@ module Haml
end
end
# Processes a single line of HAML.
# Processes a single line of haml.
#
# This method doesn't return anything; it simply processes the line and
# adds the appropriate code to <tt>@precompiled</tt>.

View file

@ -21,7 +21,7 @@ module Haml
end
end
# Benchmarks HAML against ERb, and Sass on its own.
# Benchmarks haml against ERb, and Sass on its own.
#
# Returns the results of the benchmarking as a string.
#

View file

@ -1,7 +1,7 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<title>Stop. HAML time</title>
<title>Stop. haml time</title>
<div id='content'>
<h1>This is a title!</h1>
<p>

View file

@ -1,5 +1,5 @@
= h("&&&&&&&&&&&") # This is an ActionView Helper... should load
- foo = capture do # This ActionView Helper is designed for ERB, but should work with HAML
- foo = capture do # This ActionView Helper is designed for ERB, but should work with haml
%div
%p.title Title
%p.text

View file

@ -1,7 +1,7 @@
!!!
%html
%head
%title Stop. HAML time
%title Stop. haml time
#content
%h1 This is a title!
%p Lorem ipsum dolor sit amet, consectetur adipisicing elit

View file

@ -7,8 +7,8 @@ require 'profiler'
require 'stringio'
module Haml
# A profiler for HAML, mostly for development use. This simply implements
# the Ruby profiler for profiling HAML code.
# A profiler for haml, mostly for development use. This simply implements
# the Ruby profiler for profiling haml code.
class Profiler
# Creates a new profiler that looks for templates in the base
@ -22,9 +22,9 @@ module Haml
end
end
# Profiles HAML on the given template with the given number of runs.
# Profiles haml on the given template with the given number of runs.
# The template name shouldn't have a file extension; this will
# automatically look for a HAML template.
# automatically look for a haml template.
#
# Returns the results of the profiling as a string.
def profile(runs = 100, template_name = 'standard')