Giter VIP home page Giter VIP logo

rabbtor-examples's Introduction

rabbtor-examples

Contains a sample Spring Boot MVC web application enhanced with Rabbtor features. Check out the sources and from a command prompt or terminal, run it with gradle:

gradlew bootRun

or

./gradlew bootRun

Please note that, example classes are implemented in Groovy, but their Java versions will be similar ( though tiresome )

Includes samples for

  • GSP layout template /WEB-INF/templates/layouts/main.gsp for global layout which shows an example of rendering a header template
  • home page template /WEB-INF/templates/home/index.gsp
  • HomeController which renders the index.gsp
  • AccountController which renders and processes a sample model object RegisterCommand
  • tag library implementation BootstrapFormTagLib.groovy to render Bootstrap form elements. It shows examples for reusing existing tags
  • register page which displays how Sitemesh layouts can be applied to specific page parts
  • registration form which uses Rabbtor form tags, metadata aware labels and custom bootstrap tags. It also shows how Rabbtor AJAX features are used and how you include a template within the form for AJAX scenarios
  • messages.properties file which explains label localization ( please see comments in the file )
  • <g:message> examples for accessing localized messages
  • @defaultCodec directive in _register_form.gsp to prevent HTML escaping of expressions
  • application.yml file for auto configuring GSP in Spring boot applications

Please consult the Rabbtor Documentation for more information or features not displayed here and please be aware that some features in these samples may not have been documented yet.

rabbtor-examples's People

Contributors

ckalan avatar

Stargazers

 avatar

Watchers

 avatar  avatar James Cloos 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.