0.0
No commit activity in last 3 years
No release in over 3 years
ToQuickform creates some QuickForm codes from given data.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.15
~> 10.0
~> 3.0

Runtime

 Project Readme

ToQuickform

Build Status Maintainability

ToQuickform creates some QuickForm codes from given data.

Installation

Add this line to your application's Gemfile:

gem 'to_quickform'

And then execute:

$ bundle

Or install it yourself as:

$ gem install to_quickform

Usage

Parsing an YAML/JSON

generator = ToQuickform.YAML(yaml)
generator = ToQuickform.JSON(json)

YAML format:

See https://github.com/tsmsogn/to_quickform/blob/master/spec/fixtures/sample.yaml

JSON format:

See https://github.com/tsmsogn/to_quickform/blob/master/spec/fixtures/sample.json

Creating setDefaults() codes

generator.to_set_defaults

Output https://github.com/tsmsogn/to_quickform/blob/master/spec/fixtures/set_defaults.txt

Creating addElement()/createElement() codes

generator.to_create_element

Output https://github.com/tsmsogn/to_quickform/blob/master/spec/fixtures/create_element.txt

Creating addRule()/addGrouoRule() codes

generator.to_add_rule

Output https://github.com/tsmsogn/to_quickform/blob/master/spec/fixtures/add_rule.txt

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/tsmsogn/to_quickform.