How can I add a stylesheet or script in a particular document or layout in DocPad ?
If I use something like:
<%- @getBlock('scripts').add(["/local.js"]).toHTML() %>
The script will be added where the content or layout is rendered.
But is it possible to add scripts that are added at the end with the other scripts declared on the default layout? Or in the <head> in the case of a stylesheet or a <meta>?
In WordPress, you would use wp_head et wp_footer hooks to do that. Is there some kind of equivalent mechanism?
Is the following what you’re after?