anatomy 0.2.11 → 0.2.12
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/anatomy/base.ay +10 -7
- data/lib/anatomy/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 246f827abc865390215f72d427f09b54f23e86d7
|
4
|
+
data.tar.gz: 697430a7dc17bbcfe6392612900493e620bbe215
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c5b82d55c896a62a25ae461f63e464b8b504f57cde9cc7212c25a45d867c0f5cd2af6498e5c8bcd9252060739e503131eafe663836884644a3be627af6944ac9
|
7
|
+
data.tar.gz: d23d5c42faeb0dc135c7ec70d8d032260558c4022e6fa6801662462a714e5b44d1484fda483c06f9bf41be3c1ae22810dd2a5b1df3b9cb4ac93525f82a815416
|
data/lib/anatomy/base.ay
CHANGED
@@ -14,15 +14,18 @@ def(template(mod)):
|
|
14
14
|
[part]:
|
15
15
|
part template = mod)
|
16
16
|
|
17
|
-
def(title(content, tag-name = data sanitize(content), *extra-tag-names)):
|
18
|
-
|
19
|
-
|
20
|
-
|
17
|
+
def(set-title(content, tag-name = data sanitize(content), *extra-tag-names)):
|
18
|
+
data MetaBlock new(
|
19
|
+
[part]:
|
20
|
+
part title = content
|
21
|
+
|
22
|
+
part tag = part set-tag(tag-name, .self, content)
|
21
23
|
|
22
|
-
|
24
|
+
extra-tag-names each [t]:
|
25
|
+
part set-tag(t))
|
23
26
|
|
24
|
-
|
25
|
-
|
27
|
+
def(title(content, tag-name = data sanitize(content), *extra-tag-names)):
|
28
|
+
[ set-title(content, tag-name, *extra-tag-names)
|
26
29
|
|
27
30
|
data ResolveBlock new(
|
28
31
|
[part]:
|
data/lib/anatomy/version.rb
CHANGED