govuk_template 0.10.1 → 0.11.0
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +16 -3
- data/lib/govuk_template/version.rb +1 -1
- metadata +4 -4
data/README.md
CHANGED
@@ -4,19 +4,26 @@ This provides a template containing the GOV.UK header and footer, and associated
|
|
4
4
|
|
5
5
|
This is versioned following [Semantic Versioning](http://semver.org).
|
6
6
|
|
7
|
+
## Previewing the template
|
8
|
+
|
9
|
+
You can [view a collection of auto-generated examples](http://alphagov.github.io/govuk_template/) of the current govuk_template release, which show how you can use the template.
|
10
|
+
|
7
11
|
## Requirements
|
8
12
|
|
9
13
|
The Ruby language (1.9.3+), the build tool [Rake](http://rake.rubyforge.org/) & the dependancy management tool [Bundler](http://bundler.io/)
|
10
14
|
|
11
15
|
## Packaging
|
12
16
|
|
13
|
-
At present this generates
|
17
|
+
At present this generates 8 output formats:
|
14
18
|
|
15
19
|
1. a gem containing a Rails engine
|
16
20
|
2. a tarball containing Play Framework templates
|
17
21
|
3. a folder containing Mustache templates
|
18
|
-
4. a tarball containing
|
19
|
-
5. a tarball
|
22
|
+
4. a tarball containing Liquid templates
|
23
|
+
5. a tarball containing Mustache Inheritance templates
|
24
|
+
6. a tarball containing Jinja templates
|
25
|
+
7. a tarball
|
26
|
+
8. a tarball containing EJS (Embedded JavaScript) templates
|
20
27
|
|
21
28
|
### Gem version
|
22
29
|
|
@@ -56,6 +63,10 @@ To generate the folder of Jinja templates run `bundle exec rake build:jinja`. Th
|
|
56
63
|
|
57
64
|
To generate the tarball, run the `bundle exec rake build:tar`. This will produce a tarball in the `pkg` directory.
|
58
65
|
|
66
|
+
### Embedded JavaScript version
|
67
|
+
|
68
|
+
To generate the folder of Embedded JavaScript templates run `bundle exec rake build:ejs`. This will produce a tarball in the `pkg` directory.
|
69
|
+
|
59
70
|
## Publishing
|
60
71
|
|
61
72
|
Accepted contributions (pull requests merged into master) will run builds for the Gem, Play and Mustache versions. These will then update the following:
|
@@ -63,6 +74,8 @@ Accepted contributions (pull requests merged into master) will run builds for th
|
|
63
74
|
* RubyGems.org
|
64
75
|
* [alphagov/govuk_template_play](https://github.com/alphagov/govuk_template_play)
|
65
76
|
* [alphagov/govuk_template_mustache](https://github.com/alphagov/govuk_template_mustache) which updates the [npm package](https://npmjs.org/package/govuk_template_mustache)
|
77
|
+
* [alphagov/govuk_template_ejs](https://github.com/alphagov/govuk_template_ejs) which updates the [npm package](https://npmjs.org/package/govuk_template_ejs)
|
78
|
+
|
66
79
|
|
67
80
|
## Development
|
68
81
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: govuk_template
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.11.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2014-
|
12
|
+
date: 2014-12-03 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|
@@ -220,7 +220,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
220
220
|
version: '0'
|
221
221
|
segments:
|
222
222
|
- 0
|
223
|
-
hash:
|
223
|
+
hash: 4583894652161055407
|
224
224
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
225
225
|
none: false
|
226
226
|
requirements:
|
@@ -229,7 +229,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
229
229
|
version: '0'
|
230
230
|
segments:
|
231
231
|
- 0
|
232
|
-
hash:
|
232
|
+
hash: 4583894652161055407
|
233
233
|
requirements: []
|
234
234
|
rubyforge_project:
|
235
235
|
rubygems_version: 1.8.23.2
|