Commit 8b3cdf05 authored by Thong Kuah's avatar Thong Kuah

Also explain explicitly what `element` does

We can infer from the given examples but it is implicit.
parent e32a0077
......@@ -89,8 +89,9 @@ end
The `view` DSL method declares the filename of the view where an
`element` is implmented.
It is possible to use `element` DSL method without value, with a String value
or with a Regexp.
The `element` DSL method in turn declares an element and defines a value
to match to the actual view code. It is possible to use `element` with value,
with a String value or with a Regexp.
```ruby
view 'app/views/my/view.html.haml' do
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment