express_templates 0.11.13 → 0.11.14
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/express_templates/components.rb +20 -0
- data/lib/express_templates/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: 37e0aee40d1e423259f8a277828f5972e8f2fcd5
|
4
|
+
data.tar.gz: d0f88711a06abeb927c608db9eb7f5ab4cf5e0e8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dfed066435c02c8b1ea55c232d9066e446dc1edbfd1db8734af9dbe130b618ac3f87f0dc96452fe882ae829960922af25aef4b48827e52c2f2cb181922f60f67
|
7
|
+
data.tar.gz: 5f852c84dfebc6710d721a5273f6c2ed5ea69cfd67219b5da87e9d94b3560e4c3b194a8adbaf0ccaaf6716cd0b537b67239789f3935df4686089da2872685628
|
@@ -3,6 +3,9 @@ module ExpressTemplates
|
|
3
3
|
end
|
4
4
|
end
|
5
5
|
|
6
|
+
# Abbreviation for your component class definitions
|
7
|
+
ET = ExpressTemplates
|
8
|
+
|
6
9
|
require 'express_templates/components/base'
|
7
10
|
require 'express_templates/components/configurable'
|
8
11
|
require 'express_templates/components/container'
|
@@ -10,3 +13,20 @@ require 'express_templates/components/tree_for'
|
|
10
13
|
require 'express_templates/components/content_for'
|
11
14
|
require 'express_templates/components/forms'
|
12
15
|
require 'express_templates/components/all'
|
16
|
+
|
17
|
+
module ExpressTemplates
|
18
|
+
# Convienence classes for creating components in your app or engine
|
19
|
+
class Component < Components::Base
|
20
|
+
include Components::Capabilities::Configurable
|
21
|
+
include Components::Capabilities::Hideable
|
22
|
+
end
|
23
|
+
|
24
|
+
class Container < Components::Container
|
25
|
+
include Components::Capabilities::Hideable
|
26
|
+
end
|
27
|
+
|
28
|
+
class ResourcefulContainer < Container
|
29
|
+
include Components::Capabilities::Resourceful
|
30
|
+
end
|
31
|
+
|
32
|
+
end
|