Giter Site home page Giter Site logo

hyb1234hi / supler Goto Github PK

View Code? Open in Web Editor NEW

This project forked from softwaremill/supler

0.0 2.0 0.0 3.85 MB

Rapid Form Development library. Use your favourite JS frontend & Scala backend frameworks.

Home Page: http://www.softwaremill.com

License: Apache License 2.0

Shell 0.40% Scala 52.76% JavaScript 15.60% TypeScript 30.02% HTML 1.22%

supler's Introduction

supler - Functional Reactive Form Library

Build Status Join the chat at https://gitter.im/softwaremill/supler Maven Central

Links

Introduction

Supler is a library which makes writing complex form easier. It has server-side (Scala) and client-side (JavaScript) components.

On the server side Supler provides:

  • a DSL for defining forms
  • a way to generate a JSON description of a form
  • running server-side conversion and validation
  • running server-side actions
  • applying values sent from the frontend to the backing object

On the frontend side Supler provides:

  • generating HTML basing on JSON form description
  • serializing a form to JSON
  • running client-side validations
  • customizability of the HTML generation process
  • automatically refresh the form with server-side changes after a field is edited

Supler does not define or mandate how the objects/entities backing the forms should work, how are they persisted, how are sessions managed or how you handle requests. It is also agnostic to other JS frameworks and libraries. The generated HTML has elements with predictable names, which can be easily customized.

Supler diagram

Supler diagram

Hacking on Supler

The backend is built using SBT.

The frontend is built using Grunt. To start on-change compilation of Typescript sources, running tests and a live-reload server:

  • cd supler-js
  • npm install
  • grunt dev

Version history

0.3.0 - 18/03/2015

  • field options on the frontend:
    • field order
    • javascript rendering overrides
    • render hints overrides
  • custom render hints
  • multiple fields in one row rendering
  • complex fields support
  • bug fixes and various improvements

0.2.0 - 29/01/2015

  • subforms extensions
  • ajax queueing
  • tests
  • bug fixes
  • docs

0.1.0 - 16/12/2014

  • initial release

Contributors

supler's People

Contributors

adamw avatar szimano avatar pawank avatar jtjeferreira avatar maciej avatar gitter-badger avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.