ember-inline-component
Blueprint Addon for Ember Components that have inline templates
Last updated 4 years ago by knownasilya .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install ember-inline-component 
SYNC missed versions from official npm registry.

ember-inline-component

Blueprint Addon for Ember Components that have inline templates.

NPM Build Status Ember Observer Score Ember Version

Uses the wonderful ember-cli-htmlbars-inline-precompile addon behind the scenes.

Install

ember install ember-inline-component

Usage

ember g inline-component my-component
ember g inline-component --pod another-one

This creates a component file that looks like:

import Ember from 'ember';
import hbs from 'htmlbars-inline-precompile';

export default Ember.Component.extend({
  layout: hbs`{{yield}}`
});

So you can build components with the template inside the source itself, skipping the template.hbs file. Great for prototyping, and fast development. Can always be moved to a separate template file if your template gets big.

Also works when generating inside an addon.

Contributing

If you see any issues, please submit an Issue, or a Pull Request if you can.

See CONTRIBUTING.md.

Current Tags

  • 0.1.3                                ...           latest (4 years ago)

4 Versions

  • 0.1.3                                ...           4 years ago
  • 0.1.2                                ...           4 years ago
  • 0.1.1                                ...           4 years ago
  • 0.1.0                                ...           4 years ago

Copyright 2014 - 2016 © taobao.org |