Coder Social home page Coder Social logo

play-greenscript's Issues

greenscript should use play configuration file

Hello,

Thanks for greenscript, it's very useful, but a bit annoying to put in prod with different configuration from dev. In Play! applications should put their configuration in application.conf, which allows users to specify different configuration based on framework ID (one for dev, one for prod) as such:

gs.minimize.enabled=false
gs.nocache=true
gs.compress=false

%prod.gs.minimize.enabled=true
%prod.gs.nocache=false
%prod.gs.compress=true

You should use Play!'s application.conf with a greenscript prefix, and load it from your Plugin's onConfigurationRead method, this would make it more standard and easy to deploy. Thanks.

why not providing a greenscript tag for inline JS scripting?

hello,
I was wondering if it would be a good idea to allow declaring inline javascript and your module is in charge of pasting the <script> into .
For ex:
{greenscript.inlinejs}
// do something in javascript
var myvar=0;
function myfunc(myparam1){
// blabla
}
{/greenscript.inlinejs}

This is just a idea...

best regards
Pascal Voitot

#{greenscript.css} tag does not keep the sequence of files if multiple is passed in

I am trying to use greenscript in my application. I am using 960gs which has 4 css files, reset, text, grid which need to be loaded in the exact sequence.

So I used #{greenscript.css "reset, text, grid", media:'screen', output:'all'/} without declaring dependency in configuration.

The generated result is text, grid, reset instead of reset, text, grid which cause styling problem.

Thanks for the module again.

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.