When enabled, the scope parameter is parsed, and then turned into an
array of the keys on the object. If a non-object is passed, or any of
the keys or values are not references, then an error is thrown.
disableTemplateTag, which disables using the precompile macro as a
template tag. This should be used for precompileTemplate in
ember-cli-htmlbars
disableFunctionCall, which disables using the precompile macro as
a function call. This should be used by experimental template import
syntaxes.
This PR also refactors the way that imports statements are processed.
They're now parsed in the beginning, in Program, ensuring that the
parse step is only done once, and that we can build a list of all
present imports in the file. This allows us to support more than one
module at once.
This PR refactors
modules
to enable users to pass an options, with three options currently supported:shouldParseScope
, which allows users to parse thescope
parameter into a static format usable by the precompilerWhen enabled, the scope parameter is parsed, and then turned into an array of the keys on the object. If a non-object is passed, or any of the keys or values are not references, then an error is thrown.
disableTemplateTag
, which disables using the precompile macro as a template tag. This should be used forprecompileTemplate
inember-cli-htmlbars
disableFunctionCall
, which disables using the precompile macro as a function call. This should be used by experimental template import syntaxes.This PR also refactors the way that imports statements are processed. They're now parsed in the beginning, in
Program
, ensuring that the parse step is only done once, and that we can build a list of all present imports in the file. This allows us to support more than one module at once.