
Product
Introducing Pull Request Stories to Help Security Teams Track Supply Chain Risks
Socket’s new Pull Request Stories give security teams clear visibility into dependency risks and outcomes across scanned pull requests.
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
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.
Product
Socket’s new Pull Request Stories give security teams clear visibility into dependency risks and outcomes across scanned pull requests.
Research
/Security News
npm author Qix’s account was compromised, with malicious versions of popular packages like chalk-template, color-convert, and strip-ansi published.
Research
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.