jekyll-bookshop 2.0.0.pre.beta.35 → 2.0.0.pre.beta.39

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 706b351b27cc008f773e8faca42d5e476e02cead4824d5b768d0537b58568bda
4
- data.tar.gz: f0fe5e8f58b856ea51a991d48797ce169b511c30d646df67b7acbd7063230b34
3
+ metadata.gz: 4cb4a63444288334b8343ff81309b9fde3f688a44fd2aecc3f86fbac0d7bb95f
4
+ data.tar.gz: 3b0ce33510ce05ecd390793bc9cc7a7ff92dc6636b04116e03ab5829b991dc1f
5
5
  SHA512:
6
- metadata.gz: 4bffc18d68f6604818defff8a9abcd0666958e616f5e5c0d4b28f391a19be54950954beb98e08e06d4f561c491195de8d68710c1395741dad78d520aa01380a3
7
- data.tar.gz: 677ff115c7d8d7220b81ffd7027ab5ff504b739d25e13f0a7fad51b813b5abe4f5bf808a54c9cab94804facda1b949d62d3142bbfdcfa5fe041d5d7c383b888b
6
+ metadata.gz: 7810201818479c9e97f9f8c1d9a06434bda0c723e7d477886acdaab00049113d6f2330eadc42c141c8fcf80a81d326def22e5eed2e511827ddabd65453120b5a
7
+ data.tar.gz: 5eb1a28fa13be4efd71205f39c6183a83fe49d5c50aa064cc1d84233f0ac47c27f3f2d31d71dbba50f20aec22f421b0adf06e8118101b14f4de03ce4ae703a41
@@ -30,10 +30,19 @@ module JekyllBookshop
30
30
 
31
31
  partial = load_cached_partial(path, context)
32
32
 
33
+ loop_context = ""
34
+ if context.scopes[0]["forloop"]
35
+ name = context.scopes[0]["forloop"].name
36
+ index = context.scopes[0]["forloop"].index - 1
37
+ loop_context = "#{name}[#{index}]"
38
+ end
39
+
33
40
  context.stack do
34
41
  context["include"] = parse_params(context) if @params
35
42
  begin
36
- partial.render!(context)
43
+ "<!--bookshop-live name(#{file}) params(#{@params}) context(#{loop_context.gsub(/-/, '=').gsub(/=include\./, '=')}) -->
44
+ #{partial.render!(context)}
45
+ <!--bookshop-live end-->"
37
46
  rescue Liquid::Error => e
38
47
  e.template_name = path
39
48
  e.markup_context = "included " if e.markup_context.nil?
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module JekyllBookshop
4
- VERSION = "2.0.0.pre.beta.35"
4
+ VERSION = "2.0.0.pre.beta.39"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-bookshop
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0.pre.beta.35
4
+ version: 2.0.0.pre.beta.39
5
5
  platform: ruby
6
6
  authors:
7
7
  - CloudCannon
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-09-30 00:00:00.000000000 Z
11
+ date: 2021-10-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll