playframework - Play Framework [2.4.x]: Difference between a script file as an Asset, a Public file, and/or Header? -


i have confusion on use scripts (e.g., js, coffeescript) , rule/idea behind it.

in play can use script in app/assets/javascripts and/or /public/javascripts folder and/or within head , script tag. difference? rule should follow here?

i guess main confusion compiled assets , unmanaged assets. basically, compiled assets in play must defined in app/assets directory. they handled build process , sources compiled standard javascript, css, etc. files.

the generated files distributed standard resources same public/ folder other unmanaged assets, meaning there no difference in way use them once compiled.

for example, less source file @ app/assets/stylesheets/main.less available standard resource @ public/stylesheets/main.css. play compile main.less automatically.

also, play's documentation has detailed topic on assets.


Comments

Popular posts from this blog

authentication - Mongodb revoke acccess to connect test database -

r - Update two sets of radiobuttons reactively - shiny -

ios - Realm over CoreData should I use NSFetchedResultController or a Dictionary? -