Module: EndView
- Defined in:
- lib/end_view.rb,
lib/end_view/form/builder.rb,
lib/end_view/rails/layout.rb,
lib/end_view/bootstrap/modal.rb,
lib/end_view/form/simple_form.rb,
lib/end_view/bootstrap/tab_pane.rb,
lib/end_view/bootstrap/tabpanel.rb,
lib/end_view/form/record_builder.rb,
lib/end_view/bootstrap/form_group.rb,
lib/end_view/bootstrap/form_modal.rb,
lib/end_view/bootstrap/simple_form.rb,
lib/end_view/bootstrap/simple_form_modal.rb
Defined Under Namespace
Modules: Bootstrap, ClassMethods, Form, InstanceMethods, Methods, Rails
Class Attribute Summary collapse
Class Method Summary
collapse
Class Attribute Details
.default_engine ⇒ Object
8
9
10
|
# File 'lib/end_view.rb', line 8
def default_engine
@default_engine ||= Tilt::HamlTemplate
end
|
Class Method Details
6
7
8
|
# File 'lib/end_view/bootstrap/form_group.rb', line 6
def self.bootstrap_form_group(*args)
Bootstrap::FormGroup.render(*args)
end
|
4
5
6
|
# File 'lib/end_view/bootstrap/form_modal.rb', line 4
def self.bootstrap_form_modal(*args, &b)
Bootstrap::FormModal.render(*args, &b)
end
|
.bootstrap_modal(*args, &b) ⇒ Object
5
6
7
|
# File 'lib/end_view/bootstrap/modal.rb', line 5
def self.bootstrap_modal(*args, &b)
Bootstrap::Modal.render(*args, &b)
end
|
7
8
9
|
# File 'lib/end_view/bootstrap/simple_form.rb', line 7
def self.bootstrap_simple_form(*args)
Bootstrap::SimpleForm.render(*args)
end
|
6
7
8
|
# File 'lib/end_view/bootstrap/simple_form_modal.rb', line 6
def self.bootstrap_simple_form_modal(*args)
Bootstrap::SimpleFormModal.render(*args)
end
|
.bootstrap_tab_pane(*args, &b) ⇒ Object
5
6
7
|
# File 'lib/end_view/bootstrap/tab_pane.rb', line 5
def self.bootstrap_tab_pane(*args, &b)
Bootstrap::TabPane.new(*args, &b)
end
|
.bootstrap_tabpanel(*args) ⇒ Object
6
7
8
|
# File 'lib/end_view/bootstrap/tabpanel.rb', line 6
def self.bootstrap_tabpanel(*args)
Bootstrap::Tabpanel.new(*args)
end
|
4
5
6
|
# File 'lib/end_view/form/builder.rb', line 4
def self.form_builder(*args)
Form::Builder.new(*args)
end
|
.new(file, template_engine = default_engine) ⇒ Object
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
# File 'lib/end_view.rb', line 12
def new(file, template_engine = default_engine)
Module.new do
define_singleton_method(:included) do |base|
base.extend ClassMethods
base.compile(file, template_engine)
base.send(:include, Methods)
base.send(:include, InstanceMethods)
end
define_singleton_method(:extended) do |base|
base.extend ClassMethods
base.compile(file, template_engine)
base.extend Methods
end
end
end
|
.rails_layout(*args) ⇒ Object
5
6
7
|
# File 'lib/end_view/rails/layout.rb', line 5
def self.rails_layout(*args)
Rails::Layout.new(*args)
end
|
6
7
8
|
# File 'lib/end_view/form/simple_form.rb', line 6
def self.simple_form(*args)
Form::SimpleForm.render(*args)
end
|