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
Post a Comment