handlebars-engine 0.3.0 → 0.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +9 -0
- data/README.md +12 -2
- data/lib/handlebars/engine/version.rb +1 -1
- data/lib/handlebars/engine.rb +2 -0
- metadata +13 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 2de45a7681908a24300e3a25cbe7c21b4d8d5b298dc82b53bc3edaef26f55bb4
|
|
4
|
+
data.tar.gz: d2afacff1230d65503a5b0c122b6a95dd53938d0fd42c04c371862024c846535
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 49847c2af822e87e0ee9172f3f8e70a53d7fcd14aa957e5143bce1f501582f95bf4fe9fc03e93a261843a6f98a15c6a82537430ebc415dc7b5e20511cb9930d0
|
|
7
|
+
data.tar.gz: 040e2931e222abf524d8379ff8b079354b292a31be9c5ce8097ccfbe154989cbf8233c9602d2319b4502f54b2828ad2063665512bd996416eaf0c47fcc1af1ac
|
data/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,15 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [0.3.1] - 2022-02-04
|
|
11
|
+
|
|
12
|
+
### Added
|
|
13
|
+
- `engine`: added `Error` class
|
|
14
|
+
- `specs`: added tests for (pre)compiling with options
|
|
15
|
+
|
|
16
|
+
### Changed
|
|
17
|
+
- `gem`/`readme`: updated description
|
|
18
|
+
|
|
10
19
|
## [0.3.0] - 2022-01-31
|
|
11
20
|
|
|
12
21
|
### Added
|
data/README.md
CHANGED
|
@@ -1,12 +1,22 @@
|
|
|
1
1
|
# Handlebars::Engine
|
|
2
2
|
|
|
3
3
|
[](https://rubygems.org/gems/handlebars-engine)
|
|
4
|
-
[](https://github.com/gi/handlebars-ruby/actions/workflows/ci.yml)
|
|
5
5
|
[](https://codeclimate.com/github/gi/handlebars-ruby/test_coverage)
|
|
6
6
|
[](https://codeclimate.com/github/gi/handlebars-ruby/maintainability)
|
|
7
7
|
[](LICENSE.txt)
|
|
8
8
|
|
|
9
|
-
A
|
|
9
|
+
A complete interface to [Handlebars.js](https://handlebarsjs.com) for Ruby.
|
|
10
|
+
|
|
11
|
+
`Handlebars::Engine` provides a complete Ruby API for the official JavaScript
|
|
12
|
+
version of Handlebars, including the abilities to register Ruby blocks/procs as
|
|
13
|
+
Handlebars helper functions and to dynamically register partials.
|
|
14
|
+
|
|
15
|
+
It uses [MiniRacer](https://github.com/rubyjs/mini_racer) for the bridge between
|
|
16
|
+
Ruby and the V8 JavaScript engine.
|
|
17
|
+
|
|
18
|
+
`Handlebars::Engine` was created as a replacement for
|
|
19
|
+
[handlebars.rb](https://github.com/cowboyd/handlebars.rb).
|
|
10
20
|
|
|
11
21
|
## Installation
|
|
12
22
|
|
data/lib/handlebars/engine.rb
CHANGED
|
@@ -12,6 +12,8 @@ module Handlebars
|
|
|
12
12
|
# This API follows the JavaScript API as closely as possible:
|
|
13
13
|
# https://handlebarsjs.com/api-reference/.
|
|
14
14
|
class Engine
|
|
15
|
+
Error = MiniRacer::RuntimeError
|
|
16
|
+
|
|
15
17
|
# Creates a new instance.
|
|
16
18
|
#
|
|
17
19
|
# @param lazy [true, false] immediately loads and initializes the JavaScript
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: handlebars-engine
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.3.
|
|
4
|
+
version: 0.3.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Zach Gianos
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2022-
|
|
11
|
+
date: 2022-02-05 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: handlebars-source
|
|
@@ -38,7 +38,16 @@ dependencies:
|
|
|
38
38
|
- - ">="
|
|
39
39
|
- !ruby/object:Gem::Version
|
|
40
40
|
version: '0'
|
|
41
|
-
description:
|
|
41
|
+
description: |2
|
|
42
|
+
A complete interface to Handlebars.js for Ruby.
|
|
43
|
+
|
|
44
|
+
Handlebars::Engine provides a complete Ruby API for the official JavaScript
|
|
45
|
+
version of Handlebars, including the abilities to register Ruby blocks/procs
|
|
46
|
+
as Handlebars helper functions and to dynamically register partials.
|
|
47
|
+
|
|
48
|
+
It uses MiniRacer for the bridge between Ruby and the V8 JavaScript engine.
|
|
49
|
+
|
|
50
|
+
Handlebars::Engine was created as a replacement for handlebars.rb.
|
|
42
51
|
email:
|
|
43
52
|
- zach.gianos+git@gmail.com
|
|
44
53
|
executables:
|
|
@@ -80,5 +89,5 @@ requirements: []
|
|
|
80
89
|
rubygems_version: 3.3.3
|
|
81
90
|
signing_key:
|
|
82
91
|
specification_version: 4
|
|
83
|
-
summary: A
|
|
92
|
+
summary: A complete interface to Handlebars.js for Ruby.
|
|
84
93
|
test_files: []
|