Giter Site home page Giter Site logo

ssachtleben / sbt-assets-example Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 0.0 1.14 MB

An example project shows "sbt-assets-concat", "sbt-assets-define", "sbt-assets-filter" and "sbt-assets-handlebars"

CoffeeScript 27.60% Java 4.79% HTML 15.26% Scala 52.35%

sbt-assets-example's Introduction

sbt-assets-example

What contains this example?

This example shows the following sbt assets plugins:

Why these plugins?

I have a private project which is a single page application. The templates should be compiled with handlebars. I wrote a custom require code which only has 50 lines (I dont need the requirejs lib with over 1000 lines of code) and each app file should be wrapped in a define block. This project shows each sbt-plugin in action:

sbt-assets-handlebars

This plugin precompiles the handlebars templates to javascript code.

sbt-assets-define

This plugin wraps specific compiled coffeescript files and precompiled handlebar templates in a define block.

sbt-assets-filter

This plugin cleans up all coffeescript, less, handlebars and other source files.

sbt-assets-concat

This plugin concats the require coffeescript, the compiled coffeescript and handlebar files which are wrapped in define blocks.

What next?

Minify of the code is still in develop ...

© Sebastian Sachtleben, 2015

sbt-assets-example's People

Contributors

ssachtleben avatar

Stargazers

 avatar

Watchers

 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.