
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
ember-angle-bracket-invocation-polyfill
Advanced tools
This addon provides a polyfill for angle bracket invocation syntax as described in RFC 311. It's the same components you know and love, no longer surrounded by mustaches. \o/
ember install ember-angle-bracket-invocation-polyfill
You will additionally need to ensure ember-cli-htmlbars-inline-precompile is at least version 1.0.3.
The best usage guide is the RFC itself, but here are a few examples of "before"/"after" to whet your appetite:
Before:
{{site-header user=this.user class=(if this.user.isAdmin "admin")}}
{{#super-select selected=this.user.country as |s|}}
{{#each this.availableCountries as |country|}}
{{#s.option value=country}}{{country.name}}{{/s.option}}
{{/each}}
{{/super-select}}
After:
<SiteHeader @user={{this.user}} class={{if this.user.isAdmin "admin"}} />
<SuperSelect @selected={{this.user.country}} as |Option|>
{{#each this.availableCountries as |country|}}
<Option @value={{country}}>{{country.name}}</Option>
{{/each}}
</SuperSelect>
<FooBar></FooBar>
<FooBar />
<some.thing></some.thing>
{{#with (component 'foo-bar') as |Foo|}}
<Foo></Foo>
{{/with}}
@
prefix<FooBar @title={{whateverHere}}></FooBar>
@
prefix<FooBar data-test-foo-bar></FooBar>
has-block
inside the invoked component to determine if a block was provided<FooBar /> {{! checking `has-block` inside would be `false`}}
<FooBar></FooBar> {{! checking `has-block` inside would be `true`}}
<FooBar as |qux|>{{qux}}</FooBar>
...attributes
into another angle bracket invocation<FooBar ...attributes>
...attributes
into a non-component element<div ...attributes></div>
...attributes
into tagless componentsNot all features described in the RFC are polyfilled. This addon does not support the following features:
git clone <repository-url>
cd ember-angle-bracket-invocation-polyfill
yarn install
yarn lint:js
yarn lint:js --fix
ember test
– Runs the test suite on the current Ember versionember test --server
– Runs the test suite in "watch mode"ember try:each
– Runs the test suite against multiple Ember versionsember serve
For more information on using ember-cli, visit https://ember-cli.com/.
This project is licensed under the MIT License.
FAQs
The default blueprint for ember-cli addons.
The npm package ember-angle-bracket-invocation-polyfill receives a total of 6,060 weekly downloads. As such, ember-angle-bracket-invocation-polyfill popularity was classified as popular.
We found that ember-angle-bracket-invocation-polyfill demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.