greenlaw110 / play-greenscript Goto Github PK
View Code? Open in Web Editor NEWA play framework plugin to help to manage javascript/css file dependencies and do minimizing
License: MIT License
A play framework plugin to help to manage javascript/css file dependencies and do minimizing
License: MIT License
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.
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
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.