ragtag 0.6.1 → 0.7.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 973df5561ed05908b2160fbded5423c6c0b991f6
4
+ data.tar.gz: c3c4549d769923515a83a755da1b32870ad86c59
5
+ SHA512:
6
+ metadata.gz: f46293ef6faad4c4710e0e2a5e1d62b2afa979c4fb662582d6dc35930530d9712f1440d7e5877be1a08e253a50842d26d274082b714a4efbec2d533f0e73ce73
7
+ data.tar.gz: 06e085ca7eb9be4d69193d817a10ae0891eeb22ae509cf82f9933b41c294aed44a4fc70b34c19e13ab1b16e483ec7ed3789b1343f62e4be79d4c85c36d57daea
data/.index ADDED
@@ -0,0 +1,57 @@
1
+ ---
2
+ revision: 2013
3
+ type: ruby
4
+ sources:
5
+ - INDEX.yml
6
+ authors:
7
+ - name: trans
8
+ email: transfire@gmail.com
9
+ organizations:
10
+ - name: Rubyworks
11
+ requirements:
12
+ - name: nokogiri
13
+ - groups:
14
+ - build
15
+ development: true
16
+ name: detroit
17
+ - groups:
18
+ - test
19
+ development: true
20
+ name: qed
21
+ - groups:
22
+ - test
23
+ development: true
24
+ name: ae
25
+ conflicts: []
26
+ alternatives: []
27
+ resources:
28
+ - type: home
29
+ uri: http://rubyworks.github.com/ragtag
30
+ label: Homepage
31
+ - type: code
32
+ uri: http://github.com/rubyworks/ragtag
33
+ label: Source Code
34
+ - type: bugs
35
+ uri: http://github.com/rubyworks/ragtag/issues
36
+ label: Issue Tracker
37
+ repositories:
38
+ - name: upstream
39
+ scm: git
40
+ uri: git://github.com/rubyworks/ragtag.git
41
+ categories: []
42
+ copyrights:
43
+ - holder: RubyWorks
44
+ year: '2005'
45
+ license: BSD-2-Clause
46
+ customs: []
47
+ paths:
48
+ lib:
49
+ - lib
50
+ name: ragtag
51
+ title: RagTag
52
+ version: 0.7.0
53
+ summary: Ruby Tag Attribute Language
54
+ description: RagTag is a Ruby variation on Zope Page Templates and it's TAL specification.
55
+ It primarily differs from ZPT in that it is specifically geared for use with Ruby.
56
+ created: '2005-11-26'
57
+ date: '2015-03-28'
@@ -1,6 +1,15 @@
1
- = RELEASE HISTORY
1
+ # RELEASE HISTORY
2
2
 
3
- == 0.6.1 | 2011-10-22
3
+ ## 0.7.0
4
+
5
+ This release ditches support for Ruby versions older than 2.0.
6
+
7
+ Changes:
8
+
9
+ * Remove support for Ruby older than 2.0.
10
+
11
+
12
+ ## 0.6.1 | 2011-10-22
4
13
 
5
14
  This is just an administrative release to update the build
6
15
  configuration. Functionality of library hasn't changed.
@@ -13,7 +22,7 @@ Changes:
13
22
  * Modernize build configuration.
14
23
 
15
24
 
16
- == 0.6.0 | 2010-10-15
25
+ ## 0.6.0 | 2010-10-15
17
26
 
18
27
  RTALS has been renamed to RagTag!
19
28
 
@@ -26,7 +35,7 @@ Changes:
26
35
  * No longer use XML namespace.
27
36
 
28
37
 
29
- == 0.5.0 // 2010-04-19
38
+ ## 0.5.0 | 2010-04-19
30
39
 
31
40
  This is the first public release of RTALS. The library is
32
41
  finally at a point where I think it is generally usable.
@@ -0,0 +1,23 @@
1
+ (BSD-2-Clause)
2
+
3
+ Redistribution and use in source and binary forms, with or without
4
+ modification, are permitted provided that the following conditions are met:
5
+
6
+ 1. Redistributions of source code must retain the above copyright notice,
7
+ this list of conditions and the following disclaimer.
8
+
9
+ 2. Redistributions in binary form must reproduce the above copyright
10
+ notice, this list of conditions and the following disclaimer in the
11
+ documentation and/or other materials provided with the distribution.
12
+
13
+ THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES,
14
+ INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
15
+ AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
16
+ COPYRIGHT HOLDERS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
17
+ INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
18
+ NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
19
+ DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
20
+ OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
21
+ NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
22
+ EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
23
+
@@ -0,0 +1,44 @@
1
+ # [RagTag](https://rubyworks.github.io/ragtag)
2
+
3
+ [![Version](https://img.shields.io/gem/v/ragtag.svg)](https://rubygems.org/gems/ragtag)
4
+ [![Build Status](https://secure.travis-ci.org/rubyworks/ragtag.png)](http://travis-ci.org/rubyworks/ragtag)
5
+ [![Issues](https://img.shields.io/github/issues-raw/rubyworks/ragtag.svg)](https://github.com/rubyworks/ragtag/issues)
6
+
7
+ RagTag is a Ruby-based template attribute lanaguage (TAL).
8
+ Yea, it's an acronym. Don't blame me, blame those Zope people! :wink:
9
+
10
+ RagTag is only loosely based on the Zope TAL sepcification. Its first priority
11
+ is to *Ruby*, providing a good attribute based template system specially catered
12
+ to it.
13
+
14
+
15
+ ## HOW TO USE
16
+
17
+ For the moment please see the [Wiki](http://wiki.github.com/rubyworks/ragtag/).
18
+
19
+
20
+ ## HOW TO INSTALL
21
+
22
+ Yea you know the procedure:
23
+
24
+ $ gem install ragtag
25
+
26
+ Using Bundler add the following to you gem file.
27
+
28
+ gem 'ragtag'
29
+
30
+
31
+ ## DEVELOPMENT
32
+
33
+ We use [GitHub](https://github.com/rubyworks/ragtag) to host the project.
34
+
35
+ We use [Detroit](https://detroit.github.io) to manage the build.
36
+
37
+
38
+ ## COPYRIGHT
39
+
40
+ Copyright (c) 2005 Rubyworks (BSD-2-Clause License)
41
+
42
+ RagTag is distributable in accordance to the terms of the *FreeBSD* license.
43
+
44
+ See LICENSE.txt file for details.
@@ -1,49 +1,57 @@
1
1
  ---
2
- source:
3
- - meta/
2
+ revision: 2013
3
+ type: ruby
4
+ sources:
5
+ - INDEX.yml
4
6
  authors:
5
- - name: Thomas Sawyer
7
+ - name: trans
6
8
  email: transfire@gmail.com
7
- copyrights:
8
- - holder: RubyWorks
9
- year: '2005'
10
- license: BSD-2-Clause
11
- replacements: []
12
- alternatives: []
9
+ organizations:
10
+ - name: Rubyworks
13
11
  requirements:
14
12
  - name: nokogiri
15
- - name: detroit
16
- groups:
13
+ - groups:
17
14
  - build
18
15
  development: true
19
- - name: qed
20
- groups:
16
+ name: detroit
17
+ - groups:
21
18
  - test
22
19
  development: true
23
- dependencies: []
20
+ name: qed
21
+ - groups:
22
+ - test
23
+ development: true
24
+ name: ae
24
25
  conflicts: []
26
+ alternatives: []
27
+ resources:
28
+ - type: home
29
+ uri: http://rubyworks.github.com/ragtag
30
+ label: Homepage
31
+ - type: code
32
+ uri: http://github.com/rubyworks/ragtag
33
+ label: Source Code
34
+ - type: bugs
35
+ uri: http://github.com/rubyworks/ragtag/issues
36
+ label: Issue Tracker
25
37
  repositories:
26
- - uri: git://github.com/rubyworks/ragtag.git
38
+ - name: upstream
27
39
  scm: git
28
- name: upstream
29
- resources:
30
- home: http://rubyworks.github.com/ragtag
31
- code: http://github.com/rubyworks/ragtag
32
- mail: http://groups.google.com/rubyworks-mailinglist
33
- extra: {}
34
- load_path:
35
- - lib
36
- revision: 0
37
- created: '2005-11-26'
38
- summary: A Ruby Template Attribute Language
39
- title: RagTag
40
- version: 0.6.1
40
+ uri: git://github.com/rubyworks/ragtag.git
41
+ categories: []
42
+ copyrights:
43
+ - holder: RubyWorks
44
+ year: '2005'
45
+ license: BSD-2-Clause
46
+ customs: []
47
+ paths:
48
+ lib:
49
+ - lib
41
50
  name: ragtag
42
- description: ! 'RagTag is a Ruby variation loosely based on Zope Page Templates and
43
- it''s TAL
44
-
45
- specification. It differs from ZPT in that it is specifically geared for use
46
-
47
- by Ruby.'
48
- organization: rubyworks
49
- date: '2011-10-22'
51
+ title: RagTag
52
+ version: 0.7.0
53
+ summary: Ruby Tag Attribute Language
54
+ description: RagTag is a Ruby variation on Zope Page Templates and it's TAL specification.
55
+ It primarily differs from ZPT in that it is specifically geared for use with Ruby.
56
+ created: '2005-11-26'
57
+ date: '2015-03-28'
@@ -1,5 +1,3 @@
1
- require 'facets/binding/eval'
2
-
3
1
  class Binding
4
2
 
5
3
  # Returns the value of some variable.
metadata CHANGED
@@ -1,98 +1,114 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ragtag
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.1
5
- prerelease:
4
+ version: 0.7.0
6
5
  platform: ruby
7
6
  authors:
8
- - Thomas Sawyer
7
+ - trans
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2011-10-22 00:00:00.000000000 Z
11
+ date: 2015-03-28 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: nokogiri
16
- requirement: &23469880 !ruby/object:Gem::Requirement
17
- none: false
15
+ requirement: !ruby/object:Gem::Requirement
18
16
  requirements:
19
- - - ! '>='
17
+ - - '>='
20
18
  - !ruby/object:Gem::Version
21
19
  version: '0'
22
20
  type: :runtime
23
21
  prerelease: false
24
- version_requirements: *23469880
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - '>='
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
25
27
  - !ruby/object:Gem::Dependency
26
28
  name: detroit
27
- requirement: &23469340 !ruby/object:Gem::Requirement
28
- none: false
29
+ requirement: !ruby/object:Gem::Requirement
29
30
  requirements:
30
- - - ! '>='
31
+ - - '>='
31
32
  - !ruby/object:Gem::Version
32
33
  version: '0'
33
34
  type: :development
34
35
  prerelease: false
35
- version_requirements: *23469340
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - '>='
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
36
41
  - !ruby/object:Gem::Dependency
37
42
  name: qed
38
- requirement: &23468840 !ruby/object:Gem::Requirement
39
- none: false
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - '>='
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
40
51
  requirements:
41
- - - ! '>='
52
+ - - '>='
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: ae
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - '>='
42
60
  - !ruby/object:Gem::Version
43
61
  version: '0'
44
62
  type: :development
45
63
  prerelease: false
46
- version_requirements: *23468840
47
- description: ! 'RagTag is a Ruby variation loosely based on Zope Page Templates and
48
- it''s TAL
49
-
50
- specification. It differs from ZPT in that it is specifically geared for use
51
-
52
- by Ruby.'
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - '>='
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
69
+ description: RagTag is a Ruby variation on Zope Page Templates and it's TAL specification.
70
+ It primarily differs from ZPT in that it is specifically geared for use with Ruby.
53
71
  email:
54
72
  - transfire@gmail.com
55
73
  executables: []
56
74
  extensions: []
57
75
  extra_rdoc_files:
58
- - HISTORY.rdoc
59
- - README.rdoc
60
- - COPYING.rdoc
76
+ - LICENSE.txt
77
+ - README.md
78
+ - HISTORY.md
61
79
  files:
62
- - .ruby
80
+ - .index
63
81
  - .yardopts
64
82
  - lib/ragtag/core_ext/opvars.rb
65
83
  - lib/ragtag/version.rb
66
84
  - lib/ragtag.rb
67
85
  - lib/ragtag.yml
68
- - spec/01_syntax.rdoc
69
- - spec/02_example.rdoc
70
- - spec/applique/examples.rb
71
- - HISTORY.rdoc
72
- - README.rdoc
73
- - COPYING.rdoc
86
+ - README.md
87
+ - HISTORY.md
88
+ - LICENSE.txt
74
89
  homepage: http://rubyworks.github.com/ragtag
75
- licenses: []
90
+ licenses:
91
+ - BSD-2-Clause
92
+ metadata: {}
76
93
  post_install_message:
77
94
  rdoc_options: []
78
95
  require_paths:
79
96
  - lib
80
97
  required_ruby_version: !ruby/object:Gem::Requirement
81
- none: false
82
98
  requirements:
83
- - - ! '>='
99
+ - - '>='
84
100
  - !ruby/object:Gem::Version
85
101
  version: '0'
86
102
  required_rubygems_version: !ruby/object:Gem::Requirement
87
- none: false
88
103
  requirements:
89
- - - ! '>='
104
+ - - '>='
90
105
  - !ruby/object:Gem::Version
91
106
  version: '0'
92
107
  requirements: []
93
108
  rubyforge_project:
94
- rubygems_version: 1.8.10
109
+ rubygems_version: 2.0.3
95
110
  signing_key:
96
- specification_version: 3
97
- summary: A Ruby Template Attribute Language
111
+ specification_version: 4
112
+ summary: Ruby Tag Attribute Language
98
113
  test_files: []
114
+ has_rdoc:
data/.ruby DELETED
@@ -1,49 +0,0 @@
1
- ---
2
- source:
3
- - meta/
4
- authors:
5
- - name: Thomas Sawyer
6
- email: transfire@gmail.com
7
- copyrights:
8
- - holder: RubyWorks
9
- year: '2005'
10
- license: BSD-2-Clause
11
- replacements: []
12
- alternatives: []
13
- requirements:
14
- - name: nokogiri
15
- - name: detroit
16
- groups:
17
- - build
18
- development: true
19
- - name: qed
20
- groups:
21
- - test
22
- development: true
23
- dependencies: []
24
- conflicts: []
25
- repositories:
26
- - uri: git://github.com/rubyworks/ragtag.git
27
- scm: git
28
- name: upstream
29
- resources:
30
- home: http://rubyworks.github.com/ragtag
31
- code: http://github.com/rubyworks/ragtag
32
- mail: http://groups.google.com/rubyworks-mailinglist
33
- extra: {}
34
- load_path:
35
- - lib
36
- revision: 0
37
- created: '2005-11-26'
38
- summary: A Ruby Template Attribute Language
39
- title: RagTag
40
- version: 0.6.1
41
- name: ragtag
42
- description: ! 'RagTag is a Ruby variation loosely based on Zope Page Templates and
43
- it''s TAL
44
-
45
- specification. It differs from ZPT in that it is specifically geared for use
46
-
47
- by Ruby.'
48
- organization: rubyworks
49
- date: '2011-10-22'
@@ -1,31 +0,0 @@
1
- = COPYRIGHT NOTICES
2
-
3
- == RagTag
4
-
5
- Copyright:: (c) 2010 Thomas Sawyer, Rubyworks
6
- License:: BSD-2-Clause
7
- Website:: http://rubyworks.github.com/ragtag
8
-
9
- Copyright 2011 Thomas Sawyer. All rights reserved.
10
-
11
- Redistribution and use in source and binary forms, with or without
12
- modification, are permitted provided that the following conditions are met:
13
-
14
- 1. Redistributions of source code must retain the above copyright notice,
15
- this list of conditions and the following disclaimer.
16
-
17
- 2. Redistributions in binary form must reproduce the above copyright
18
- notice, this list of conditions and the following disclaimer in the
19
- documentation and/or other materials provided with the distribution.
20
-
21
- THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES,
22
- INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
23
- AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
24
- COPYRIGHT HOLDERS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
25
- INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
26
- NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
27
- DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
28
- OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
29
- NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
30
- EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
31
-
@@ -1,45 +0,0 @@
1
- = RagTag
2
-
3
- Copyright (c)2005 Thomas Sawyer (FreeBSD License)
4
-
5
- * home: http://rubyworks.github.com/ragtag
6
- * code: http://github.com/rubyworks/ragtag
7
-
8
-
9
- == OVERVIEW
10
-
11
- RagTag is a Ruby-based template attribute lanaguage (TAL).
12
- Yea, it's an acronym. Don't blame me, blame those Zope people ;)
13
-
14
- RagTag is only loosely based on the Zope TAL sepcification. It's first priority
15
- has been to provide a good attribute based template system for _Ruby_.
16
-
17
-
18
- == USAGE
19
-
20
- For the moment please see the Wiki[http://wiki.github.com/rubyworks/ragtag/].
21
-
22
-
23
- == HOW TO INSTALL
24
-
25
- Yea you know the procedure:
26
-
27
- $ gem install ragtag
28
-
29
-
30
- == DEVELOPMENT
31
-
32
- We use GitHub[http://github.com/rubyworks/ragtag] to host the project.
33
-
34
- We use Detroit[http://detroit.github.com] to manage the build.
35
-
36
-
37
- == COPYRIGHT
38
-
39
- (BSD-2-Clause License)
40
-
41
- Copyright (c) 2005 Rubyworks
42
-
43
- RagTag is distributable in accordance to the terms of the *FreeBSD* license.
44
-
45
- See COPYING.rdoc file for details.
@@ -1,104 +0,0 @@
1
- = RagTag Syntax
2
-
3
- To demonstrate the RagTag syntax we first need to load the library.
4
-
5
- require 'ragtag'
6
-
7
-
8
- == Content Rendering
9
-
10
- Tag content can be rendered using the `content` attribute.
11
-
12
- Given a template:
13
-
14
- <h1 content="name">John Doe</h1>
15
-
16
- And given a local binding:
17
-
18
- name = 'Bill Hickcock'
19
-
20
- Then result will be:
21
-
22
- <h1>Bill Hickcock</h1>
23
-
24
-
25
- == Replacement
26
-
27
- A tag can be fully replaced by a rendering using the `replace`
28
- attribute.
29
-
30
- Given a template:
31
-
32
- <p>The customer is <span replace="age" /> years old.</p>
33
-
34
- And given a local binding:
35
-
36
- age = 40
37
-
38
- The result will be:
39
-
40
- <p>The customer is 40 years old.</p>
41
-
42
-
43
- == Atrtibute Rendering
44
-
45
- To render variable attributes use the `attr` attribute.
46
-
47
- Given a template:
48
-
49
- <div attr="class: sample" />
50
-
51
- And given a local binding:
52
-
53
- sample = 'impressive'
54
-
55
- The result will be:
56
-
57
- <div class="impressive"></div>
58
-
59
-
60
- == Conditions
61
-
62
- Conditional sections can be created using the `if` attribute.
63
-
64
- Given a template:
65
-
66
- <b if="age >= 60">
67
- The customer is a senior citizen.
68
- </b>
69
-
70
- And given a local binding:
71
-
72
- age = 60
73
-
74
- The result will be:
75
-
76
- <b>
77
- The customer is a senior citizen.
78
- </b>
79
-
80
-
81
- == Iteration
82
-
83
- Iterations can be acheived via the `each` attribute.
84
-
85
- Given a template:
86
-
87
- <ul each="tags" do="tag">
88
- <li content="tag">Tag</li>
89
- </ul>
90
-
91
- And given a local binding:
92
-
93
- tags = ['ruby', 'perl', 'lua']
94
-
95
- The result will be:
96
-
97
- <ul>
98
- <li>ruby</li>
99
-
100
- <li>perl</li>
101
-
102
- <li>lua</li>
103
- </ul>
104
-
@@ -1,108 +0,0 @@
1
- = Example
2
-
3
- Here is a large example.
4
-
5
- Given a template:
6
-
7
- <html>
8
- <body>
9
- <div attr="class: customer_class">
10
- <h1 content="customer.name">John Doe</h1>
11
-
12
- <p>The customer is <span replace="customer.age" /> year old.</p>
13
-
14
- <ul each="customer.tags" do="tag">
15
- <li content="tag">Tag</li>
16
- </ul>
17
-
18
- <ul each="customer.tags" do="tag">
19
- <li each="tag.split(//)" do="x">
20
- <b content="x" />
21
- </li>
22
- </ul>
23
-
24
- <b class="notice" if="customer.age > 60">
25
- The customer is a senior citizen.
26
- </b>
27
-
28
- <div class="notice" if="customer.age > 60" omit="true">
29
- The customer is a senior citizen.
30
- </div>
31
- </div>
32
- </body>
33
- </html>
34
-
35
- And given a local binding:
36
-
37
- customer = OpenStruct.new
38
- customer.name = "John Roberts"
39
- customer.address = "555 Hobart St"
40
- customer.city = "Palm Bay"
41
- customer.state = "FL"
42
- customer.zip = "32709"
43
- customer.age = 65
44
- customer.tags = [ 'ruby', 'javascript' ]
45
-
46
- customer_class = customer.age > 60 ? 'senior' : 'normal'
47
-
48
- Then result will be:
49
-
50
- <?xml version="1.0"?>
51
- <html>
52
- <body>
53
- <div class="senior">
54
- <h1>John Roberts</h1>
55
-
56
- <p>The customer is 65 year old.</p>
57
-
58
- <ul>
59
- <li>ruby</li>
60
-
61
- <li>javascript</li>
62
- </ul>
63
-
64
- <ul>
65
- <li>
66
- <b>r</b>
67
-
68
- <b>u</b>
69
-
70
- <b>b</b>
71
-
72
- <b>y</b>
73
- </li>
74
-
75
- <li>
76
- <b>j</b>
77
-
78
- <b>a</b>
79
-
80
- <b>v</b>
81
-
82
- <b>a</b>
83
-
84
- <b>s</b>
85
-
86
- <b>c</b>
87
-
88
- <b>r</b>
89
-
90
- <b>i</b>
91
-
92
- <b>p</b>
93
-
94
- <b>t</b>
95
- </li>
96
- </ul>
97
-
98
- <b class="notice">
99
- The customer is a senior citizen.
100
- </b>
101
-
102
-
103
- The customer is a senior citizen.
104
-
105
- </div>
106
- </body>
107
- </html>
108
-
@@ -1,17 +0,0 @@
1
- require 'ostruct'
2
-
3
- When /Given a template/ do |text|
4
- @template = text.strip
5
- end
6
-
7
- When /given a local binding/ do |code|
8
- @code = code
9
- end
10
-
11
- When /The result will be/ do |text|
12
- b = binding
13
- Kernel.eval(@code, b)
14
- result = RagTag.compile(@template, b).to_xhtml
15
- text.strip.assert == result.strip
16
- end
17
-