# handlebars-extend-block Create extend blocks for handlebars allowing partials to inject text into parent elements. This is generally useful for script and style tags. ## example ```js var handlebars = require('handlebars'); var extend = require('handlebars-extend-block'); handlebars = extend(handlebars); ``` Layout File ```html {{title}} {{{block "stylesheets"}}} {{{body}}}
post body
{{{block "scripts"}}} ``` Partial ```html {{#extend "stylesheets"}} {{/extend}} let the magic begin {{#extend "scripts"}} {{/extend}} ```