Giter Club home page Giter Club logo

scalasti's Introduction

Scalasti: A Scala interface to the Java StringTemplate Library

Build Status Maven Central

Introduction

This is Scalasti, a Scala interface to the StringTemplate Java template library.

Scalasti provides a (useful) subset of the StringTemplate API's features, with a more Scala-friendly syntax.

Scalasti's additional features include:

  • Immutability. As of version 3.0.0, Scalasti objects are immutable, unlike the StringTemplate objects. Modifier methods always create new objects; they never modify objects in place. Immutability is more functional and more idiomatic to Scala, and an immutable Scalasti API was long overdue.

  • Error-handling. Where possible, Scalasti propagates errors via scala.util.Try objects, instead of via a StringTemplate listener. This approach is also more idiomatic to Scala.

  • Scala object support. Scalasti supports Scala objects, meaning you don't have to use @BeanProperty on your Scala classes before you can pass them into a template. This feature also allows you to use instances of third-party Scala classes directly with Scalasti.

  • Stronger type safety. You should never need to cast objects you receive from the Scalast API.

  • Mapped aggregates provide the ability to add maps (which can be nested) as template attributes, which you can then deference within the template via dot-notation.

For complete information, see the Scalasti home page.

Copyright and license

Scalasti is copyright © 2010-2018 Brian M. Clapper and is released under a BSD license. See the accompanying license file for details.

scalasti's People

Contributors

bmc avatar jalaziz avatar sethtisue avatar vendamere avatar xuwei-k avatar

Watchers

 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.