Use browser globals. Will fail if they are not yet loaded.
If there was no partial passed, throw an error.
Create values
array with all the arguments after the first one,
which is partial
.
Pop options
off the end. It is passed from handlebars and is
not user defined.
Resolve partialName
into a partial previously registered with
Handlebars.
Extend context
with the parameters passed in.
Call the original partial with the extended context
.
AMD. Register as an anonymous module.