├── .gitignore ├── .travis.yml ├── CHANGELOG.md ├── Gemfile ├── LICENSE.txt ├── README.md ├── Rakefile ├── formular.gemspec ├── lib ├── formular.rb └── formular │ ├── attributes.rb │ ├── builder.rb │ ├── builders │ ├── basic.rb │ ├── bootstrap3.rb │ ├── bootstrap3_horizontal.rb │ ├── bootstrap3_inline.rb │ ├── bootstrap4.rb │ ├── bootstrap4_horizontal.rb │ ├── bootstrap4_inline.rb │ └── foundation6.rb │ ├── element.rb │ ├── element │ ├── bootstrap3.rb │ ├── bootstrap3 │ │ ├── checkable_control.rb │ │ ├── column_control.rb │ │ ├── horizontal.rb │ │ └── input_group.rb │ ├── bootstrap4.rb │ ├── bootstrap4 │ │ ├── checkable_control.rb │ │ ├── custom_control.rb │ │ ├── horizontal.rb │ │ └── input_group.rb │ ├── foundation6.rb │ ├── foundation6 │ │ ├── checkable_control.rb │ │ ├── input_group.rb │ │ └── wrapped.rb │ ├── module.rb │ └── modules │ │ ├── checkable.rb │ │ ├── collection.rb │ │ ├── container.rb │ │ ├── control.rb │ │ ├── error.rb │ │ ├── escape_value.rb │ │ ├── hint.rb │ │ ├── label.rb │ │ └── wrapped.rb │ ├── elements.rb │ ├── helper.rb │ ├── html_block.rb │ ├── html_escape.rb │ ├── path.rb │ └── version.rb └── test ├── attributes_test.rb ├── builder_test.rb ├── builders ├── basic_test.rb ├── bootstrap3_test.rb └── foundation6_test.rb ├── element ├── bootstrap3 │ ├── button_test.rb │ ├── checkable_control_test.rb │ ├── column_control_test.rb │ └── input_group_test.rb ├── bootstrap3_test.rb ├── bootstrap4 │ ├── button_test.rb │ ├── checkable_control_test.rb │ └── custom_control_test.rb ├── bootstrap4_test.rb ├── errors_test.rb ├── foundation6 │ ├── checkable_control_test.rb │ └── input_group_test.rb ├── foundation6_test.rb ├── hints_test.rb └── labels_test.rb ├── element_test.rb ├── elements_test.rb ├── erb_test.rb ├── fixtures └── comment │ ├── erb │ └── show │ │ └── view │ │ └── show.erb │ └── slim │ └── show │ └── view │ └── show.slim ├── helper_test.rb ├── path_test.rb ├── slim_test.rb └── test_helper.rb /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trailblazer/formular/HEAD/.gitignore -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trailblazer/formular/HEAD/.travis.yml -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trailblazer/formular/HEAD/CHANGELOG.md -------------------------------------------------------------------------------- /Gemfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trailblazer/formular/HEAD/Gemfile -------------------------------------------------------------------------------- /LICENSE.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trailblazer/formular/HEAD/LICENSE.txt -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trailblazer/formular/HEAD/README.md -------------------------------------------------------------------------------- /Rakefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trailblazer/formular/HEAD/Rakefile -------------------------------------------------------------------------------- /formular.gemspec: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trailblazer/formular/HEAD/formular.gemspec -------------------------------------------------------------------------------- /lib/formular.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trailblazer/formular/HEAD/lib/formular.rb -------------------------------------------------------------------------------- /lib/formular/attributes.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trailblazer/formular/HEAD/lib/formular/attributes.rb -------------------------------------------------------------------------------- /lib/formular/builder.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trailblazer/formular/HEAD/lib/formular/builder.rb -------------------------------------------------------------------------------- /lib/formular/builders/basic.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trailblazer/formular/HEAD/lib/formular/builders/basic.rb -------------------------------------------------------------------------------- /lib/formular/builders/bootstrap3.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trailblazer/formular/HEAD/lib/formular/builders/bootstrap3.rb -------------------------------------------------------------------------------- /lib/formular/builders/bootstrap3_horizontal.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trailblazer/formular/HEAD/lib/formular/builders/bootstrap3_horizontal.rb -------------------------------------------------------------------------------- /lib/formular/builders/bootstrap3_inline.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trailblazer/formular/HEAD/lib/formular/builders/bootstrap3_inline.rb -------------------------------------------------------------------------------- /lib/formular/builders/bootstrap4.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trailblazer/formular/HEAD/lib/formular/builders/bootstrap4.rb -------------------------------------------------------------------------------- /lib/formular/builders/bootstrap4_horizontal.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trailblazer/formular/HEAD/lib/formular/builders/bootstrap4_horizontal.rb -------------------------------------------------------------------------------- /lib/formular/builders/bootstrap4_inline.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trailblazer/formular/HEAD/lib/formular/builders/bootstrap4_inline.rb -------------------------------------------------------------------------------- /lib/formular/builders/foundation6.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trailblazer/formular/HEAD/lib/formular/builders/foundation6.rb -------------------------------------------------------------------------------- /lib/formular/element.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trailblazer/formular/HEAD/lib/formular/element.rb -------------------------------------------------------------------------------- /lib/formular/element/bootstrap3.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trailblazer/formular/HEAD/lib/formular/element/bootstrap3.rb -------------------------------------------------------------------------------- /lib/formular/element/bootstrap3/checkable_control.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trailblazer/formular/HEAD/lib/formular/element/bootstrap3/checkable_control.rb -------------------------------------------------------------------------------- /lib/formular/element/bootstrap3/column_control.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trailblazer/formular/HEAD/lib/formular/element/bootstrap3/column_control.rb -------------------------------------------------------------------------------- /lib/formular/element/bootstrap3/horizontal.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trailblazer/formular/HEAD/lib/formular/element/bootstrap3/horizontal.rb -------------------------------------------------------------------------------- /lib/formular/element/bootstrap3/input_group.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trailblazer/formular/HEAD/lib/formular/element/bootstrap3/input_group.rb -------------------------------------------------------------------------------- /lib/formular/element/bootstrap4.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trailblazer/formular/HEAD/lib/formular/element/bootstrap4.rb -------------------------------------------------------------------------------- /lib/formular/element/bootstrap4/checkable_control.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trailblazer/formular/HEAD/lib/formular/element/bootstrap4/checkable_control.rb -------------------------------------------------------------------------------- /lib/formular/element/bootstrap4/custom_control.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trailblazer/formular/HEAD/lib/formular/element/bootstrap4/custom_control.rb -------------------------------------------------------------------------------- /lib/formular/element/bootstrap4/horizontal.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trailblazer/formular/HEAD/lib/formular/element/bootstrap4/horizontal.rb -------------------------------------------------------------------------------- /lib/formular/element/bootstrap4/input_group.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trailblazer/formular/HEAD/lib/formular/element/bootstrap4/input_group.rb -------------------------------------------------------------------------------- /lib/formular/element/foundation6.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trailblazer/formular/HEAD/lib/formular/element/foundation6.rb -------------------------------------------------------------------------------- /lib/formular/element/foundation6/checkable_control.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trailblazer/formular/HEAD/lib/formular/element/foundation6/checkable_control.rb -------------------------------------------------------------------------------- /lib/formular/element/foundation6/input_group.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trailblazer/formular/HEAD/lib/formular/element/foundation6/input_group.rb -------------------------------------------------------------------------------- /lib/formular/element/foundation6/wrapped.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trailblazer/formular/HEAD/lib/formular/element/foundation6/wrapped.rb -------------------------------------------------------------------------------- /lib/formular/element/module.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trailblazer/formular/HEAD/lib/formular/element/module.rb -------------------------------------------------------------------------------- /lib/formular/element/modules/checkable.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trailblazer/formular/HEAD/lib/formular/element/modules/checkable.rb -------------------------------------------------------------------------------- /lib/formular/element/modules/collection.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trailblazer/formular/HEAD/lib/formular/element/modules/collection.rb -------------------------------------------------------------------------------- /lib/formular/element/modules/container.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trailblazer/formular/HEAD/lib/formular/element/modules/container.rb -------------------------------------------------------------------------------- /lib/formular/element/modules/control.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trailblazer/formular/HEAD/lib/formular/element/modules/control.rb -------------------------------------------------------------------------------- /lib/formular/element/modules/error.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trailblazer/formular/HEAD/lib/formular/element/modules/error.rb -------------------------------------------------------------------------------- /lib/formular/element/modules/escape_value.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trailblazer/formular/HEAD/lib/formular/element/modules/escape_value.rb -------------------------------------------------------------------------------- /lib/formular/element/modules/hint.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trailblazer/formular/HEAD/lib/formular/element/modules/hint.rb -------------------------------------------------------------------------------- /lib/formular/element/modules/label.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trailblazer/formular/HEAD/lib/formular/element/modules/label.rb -------------------------------------------------------------------------------- /lib/formular/element/modules/wrapped.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trailblazer/formular/HEAD/lib/formular/element/modules/wrapped.rb -------------------------------------------------------------------------------- /lib/formular/elements.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trailblazer/formular/HEAD/lib/formular/elements.rb -------------------------------------------------------------------------------- /lib/formular/helper.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trailblazer/formular/HEAD/lib/formular/helper.rb -------------------------------------------------------------------------------- /lib/formular/html_block.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trailblazer/formular/HEAD/lib/formular/html_block.rb -------------------------------------------------------------------------------- /lib/formular/html_escape.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trailblazer/formular/HEAD/lib/formular/html_escape.rb -------------------------------------------------------------------------------- /lib/formular/path.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trailblazer/formular/HEAD/lib/formular/path.rb -------------------------------------------------------------------------------- /lib/formular/version.rb: -------------------------------------------------------------------------------- 1 | module Formular 2 | VERSION = '0.2.3' 3 | end 4 | -------------------------------------------------------------------------------- /test/attributes_test.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trailblazer/formular/HEAD/test/attributes_test.rb -------------------------------------------------------------------------------- /test/builder_test.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trailblazer/formular/HEAD/test/builder_test.rb -------------------------------------------------------------------------------- /test/builders/basic_test.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trailblazer/formular/HEAD/test/builders/basic_test.rb -------------------------------------------------------------------------------- /test/builders/bootstrap3_test.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trailblazer/formular/HEAD/test/builders/bootstrap3_test.rb -------------------------------------------------------------------------------- /test/builders/foundation6_test.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trailblazer/formular/HEAD/test/builders/foundation6_test.rb -------------------------------------------------------------------------------- /test/element/bootstrap3/button_test.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trailblazer/formular/HEAD/test/element/bootstrap3/button_test.rb -------------------------------------------------------------------------------- /test/element/bootstrap3/checkable_control_test.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trailblazer/formular/HEAD/test/element/bootstrap3/checkable_control_test.rb -------------------------------------------------------------------------------- /test/element/bootstrap3/column_control_test.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trailblazer/formular/HEAD/test/element/bootstrap3/column_control_test.rb -------------------------------------------------------------------------------- /test/element/bootstrap3/input_group_test.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trailblazer/formular/HEAD/test/element/bootstrap3/input_group_test.rb -------------------------------------------------------------------------------- /test/element/bootstrap3_test.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trailblazer/formular/HEAD/test/element/bootstrap3_test.rb -------------------------------------------------------------------------------- /test/element/bootstrap4/button_test.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trailblazer/formular/HEAD/test/element/bootstrap4/button_test.rb -------------------------------------------------------------------------------- /test/element/bootstrap4/checkable_control_test.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trailblazer/formular/HEAD/test/element/bootstrap4/checkable_control_test.rb -------------------------------------------------------------------------------- /test/element/bootstrap4/custom_control_test.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trailblazer/formular/HEAD/test/element/bootstrap4/custom_control_test.rb -------------------------------------------------------------------------------- /test/element/bootstrap4_test.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trailblazer/formular/HEAD/test/element/bootstrap4_test.rb -------------------------------------------------------------------------------- /test/element/errors_test.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trailblazer/formular/HEAD/test/element/errors_test.rb -------------------------------------------------------------------------------- /test/element/foundation6/checkable_control_test.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trailblazer/formular/HEAD/test/element/foundation6/checkable_control_test.rb -------------------------------------------------------------------------------- /test/element/foundation6/input_group_test.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trailblazer/formular/HEAD/test/element/foundation6/input_group_test.rb -------------------------------------------------------------------------------- /test/element/foundation6_test.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trailblazer/formular/HEAD/test/element/foundation6_test.rb -------------------------------------------------------------------------------- /test/element/hints_test.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trailblazer/formular/HEAD/test/element/hints_test.rb -------------------------------------------------------------------------------- /test/element/labels_test.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trailblazer/formular/HEAD/test/element/labels_test.rb -------------------------------------------------------------------------------- /test/element_test.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trailblazer/formular/HEAD/test/element_test.rb -------------------------------------------------------------------------------- /test/elements_test.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trailblazer/formular/HEAD/test/elements_test.rb -------------------------------------------------------------------------------- /test/erb_test.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trailblazer/formular/HEAD/test/erb_test.rb -------------------------------------------------------------------------------- /test/fixtures/comment/erb/show/view/show.erb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trailblazer/formular/HEAD/test/fixtures/comment/erb/show/view/show.erb -------------------------------------------------------------------------------- /test/fixtures/comment/slim/show/view/show.slim: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trailblazer/formular/HEAD/test/fixtures/comment/slim/show/view/show.slim -------------------------------------------------------------------------------- /test/helper_test.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trailblazer/formular/HEAD/test/helper_test.rb -------------------------------------------------------------------------------- /test/path_test.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trailblazer/formular/HEAD/test/path_test.rb -------------------------------------------------------------------------------- /test/slim_test.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trailblazer/formular/HEAD/test/slim_test.rb -------------------------------------------------------------------------------- /test/test_helper.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/trailblazer/formular/HEAD/test/test_helper.rb --------------------------------------------------------------------------------