slight-lang 1.3.1 → 1.3.2
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/.DS_Store +0 -0
- data/example/component.htm +0 -3
- data/example/defaults +1 -0
- data/example/index.htm +1 -1
- data/example/index.slight.rb +2 -1
- data/lib/slight/dsl.rb +11 -0
- data/lib/slight.rb +1 -1
- metadata +2 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: e6b45c73b7edcd7bd46e02559ab9839017a57980
|
|
4
|
+
data.tar.gz: 87111fdfcf8ef3b78501ef8ca94598c2e135e8e6
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 3449fef75311167d5464deba845a4ea544993e2e53f3da82bfc4bbee43110599cb8337ac3f8ced4df4cfed80d047993ba48fdc274a68cb42b24059791303b623
|
|
7
|
+
data.tar.gz: d41204207953d3069ef32d18dd0093967dc81491d91ecebedac30f66891da70e1885b9c4f9031742955b05f6a36acbb71c8c1ed5331ded5202a9c9e313fd88fd
|
data/.DS_Store
CHANGED
|
Binary file
|
data/example/component.htm
CHANGED
data/example/defaults
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@var1="Hello This is Defaults Title"
|
data/example/index.htm
CHANGED
data/example/index.slight.rb
CHANGED
data/lib/slight/dsl.rb
CHANGED
|
@@ -58,6 +58,17 @@ module Slight
|
|
|
58
58
|
nil
|
|
59
59
|
end
|
|
60
60
|
|
|
61
|
+
def layout(target)
|
|
62
|
+
layout_yield(target.to_s + ".slight")
|
|
63
|
+
end
|
|
64
|
+
|
|
65
|
+
def inc(*preloads)
|
|
66
|
+
preloads << "defaults" if preloads.size == 0
|
|
67
|
+
preloads.each{ |target|
|
|
68
|
+
layout_yield(target.to_s)
|
|
69
|
+
}
|
|
70
|
+
end
|
|
71
|
+
|
|
61
72
|
# set the placeholder in current page
|
|
62
73
|
#def layout_placeholder(ph_alias="default")
|
|
63
74
|
# echo "<!--######|PLACEHOLDER-#{ph_alias}|######-->"
|
data/lib/slight.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: slight-lang
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.3.
|
|
4
|
+
version: 1.3.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- oliver.yu
|
|
@@ -33,6 +33,7 @@ files:
|
|
|
33
33
|
- example/core.rb
|
|
34
34
|
- example/custom_engine.rb
|
|
35
35
|
- example/default_engine.rb
|
|
36
|
+
- example/defaults
|
|
36
37
|
- example/index.htm
|
|
37
38
|
- example/index.slight.rb
|
|
38
39
|
- example/tilt_example.rb
|