
Security News
Crates.io Users Targeted by Phishing Emails
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
ember-cli-markdown-it-templates
Advanced tools
Create .md - templates in Ember.js projects via markdown-it
This addon allows using .md
and markdown
-files as templates in your
Ember.js projects. Internally this addon uses
markdown-it-compiler
and markdown-it-ember
.
ember install ember-cli-markdown-it-templates
With ember-cli-markdown-it-templates
you can write your template files in
markdown-format:
<!-- components/test.md -->
# Headline
This is a markdown template
This can now be used like a regular component in your Ember.js
-application:
{{!-- application.hbs --}}
<Test />
and will render the following:
<h1>Headline</h1>
<p>This is a markdown template</p>
In addition to allowing you to create markdown
-templates you can also include
Ember.js
-components like regular html in your markdown
-templates.
Example:
# Headline
This is a markdown template
<Button
{{on "click" this.handleClick}}
data-test-ember-button-in-markdown
>
Click me
</Button>
<div>
{{#if this.showResult}}
<div data-test-result>
Result
</div>
{{/if}}
</div>
Result:
Please be aware that you will need to wrap {{if}}
, {{each}}
and other
curly-invocations into a wrapper-div
. You will receive a build error
otherwise.
When you want to create content heavy applications - e.g. a blog that is prerendered via prember - you can use this addon to make it easier for you to create your content.
Mixing markdown
-content and Ember.js
-components can also be useful when you
want to document component behavior or component usage patterns in
a styleguide.
See the Contributing guide for details.
Thanks to gossi for the idea for this and the markdown-it-compiler- and markdown-it-ember-projects.
This project is licensed under the MIT License.
FAQs
Create .md - templates in Ember.js projects via markdown-it
The npm package ember-cli-markdown-it-templates receives a total of 151 weekly downloads. As such, ember-cli-markdown-it-templates popularity was classified as not popular.
We found that ember-cli-markdown-it-templates demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
Product
Socket now lets you customize pull request alert headers, helping security teams share clear guidance right in PRs to speed reviews and reduce back-and-forth.
Product
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.