flame 4.0.1 → 4.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/flame/render.rb +3 -1
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 255a8d94f1326b67225cdd4b19f9f7e98de75bdd
4
- data.tar.gz: 14d93ff6ae287e137c8711de646c38443583f333
3
+ metadata.gz: 1b52db07498e5214218b077fda90572503d291ec
4
+ data.tar.gz: 620633b76a15556a9dc8599df3bde0d89f468d2b
5
5
  SHA512:
6
- metadata.gz: 9c4546180307af412902b9e1444bf36109c9071dcdf9cabaf828e43f2aba8c41bdbf99ea5ec5dc64e7be7647ab11204a7d76f9382d2868cc3b8f20d4f48c9215
7
- data.tar.gz: d6c1a14007b6c072a2ad736237c13e90386c9e7397b5ba2471b7eb61f2a9761353ae06f00ec41245307ea44dcb662fffac654a3b10c3bf603413e7be4bc14251
6
+ metadata.gz: de46b73a9358939c8fad6a036ded3fb718477d2987ac6c568a0701f5785fb1cd1ed073fe922de1c8e3d95c9d1ce08c9223e99fc52bf206f373260408f7056dea
7
+ data.tar.gz: 7065e69a6a6cf85772faffe5db31a81f34828819b09100c8579973b5ef0c42cf1b363eb2e5f76334b73bbfeb25a08d0e47026536f424b519a2af8c95b357e1f0
@@ -16,7 +16,8 @@ module Flame
16
16
  @locals = options.merge(options.delete(:locals) || {})
17
17
  ## Find filename
18
18
  @filename = find_file(path)
19
- @ctrl.instance_exec { halt 404 } unless @filename
19
+ # @ctrl.instance_exec { halt 404 } unless @filename
20
+ return unless @filename
20
21
  @layout = nil if File.basename(@filename)[0] == '_'
21
22
  end
22
23
 
@@ -24,6 +25,7 @@ module Flame
24
25
  ## @param cache [Boolean] cache compiles or not
25
26
  def render(cache: true)
26
27
  ## Compile Tilt to instance hash
28
+ return unless @filename
27
29
  tilt = cache ? self.class.tilts[@filename] ||= compile : compile
28
30
  ## Render Tilt from instance hash with new options
29
31
  layout_render tilt.render(@scope, @locals), cache: cache
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: flame
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.0.1
4
+ version: 4.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alexander Popov