hicube 0.0.9 → 0.0.10
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
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 97f922c8ec90edb65b2f7e4bedfbf876b4337ff7
|
4
|
+
data.tar.gz: 1d5b9e697a96d5118d932bfc75fc06f9534c1a11
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d64926b924e89e0f46605abe76250de398eaebc641c546db48abdb977eb5397a00b095e989a7dff36f30ec19147d9151e27f86da05edf428f8d77deb0c66eccd
|
7
|
+
data.tar.gz: 7fd717abe4ae3a109fad5aa26eda256b94f1a62dae20d81cbdca4ea3dbbcfb3d97f84173a4a608dbaffcdfeb9d1342756d27af822bebccb98d092643058824a6
|
@@ -49,8 +49,12 @@ module Hicube
|
|
49
49
|
f.write ::Liquid::Template.parse(@page.body).render
|
50
50
|
f.close
|
51
51
|
|
52
|
-
@page_content = ::Slim::Template.new(filename).render Object.new,
|
53
|
-
|
52
|
+
@page_content = ::Slim::Template.new(filename).render (Object.new,
|
53
|
+
links: Hicube::Page.parents.map(&:slug),
|
54
|
+
header_links: Hicube::Page.parents.headers.map(&:slug),
|
55
|
+
footer_links: Hicube::Page.parents.footers.map(&:slug),
|
56
|
+
documents: Hicube::Document.all, id: @page.slug
|
57
|
+
)
|
54
58
|
end
|
55
59
|
|
56
60
|
private
|
data/lib/hicube/engine.rb
CHANGED
@@ -1,11 +1,5 @@
|
|
1
1
|
module Hicube
|
2
2
|
class Engine < ::Rails::Engine
|
3
3
|
isolate_namespace Hicube
|
4
|
-
|
5
|
-
initializer 'hicube.assets.precompile' do |app|
|
6
|
-
%w(stylesheets javascripts img).each do |sub|
|
7
|
-
app.config.assets.paths << root.join('vendor', 'assets', sub)
|
8
|
-
end
|
9
|
-
end
|
10
4
|
end
|
11
5
|
end
|
data/lib/hicube/version.rb
CHANGED