Git Product home page Git Product logo

ember-ast-helpers's People

Contributors

cibernox avatar deepflame avatar ef4 avatar joukevandermaas avatar samselikoff avatar turbo87 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

ember-ast-helpers's Issues

Glimmer dependencies missing (and too old)

This was mentioned here: #23

But Glimmer is now on 0.88. ๐Ÿ˜…

It seems also the glimmer dependencies need to move to dependencies.

I get this error:

 Cannot find module '@glimmer/syntax'
 Require stack:
 - <deps>/[email protected]/node_modules/ember-ast-helpers/build-time-component.js

Cannot find module '@glimmer/syntax' with 0.4

Latest published seems to be 0.4, but it throws error:

Cannot find module '@glimmer/syntax'

Downgrading to 0.3.5 seemed to get me going.

Should we make 0.4 a pre-release? I couldn't find it in Github.

Let me know if I can help!

How do I import BuildTimeComponent?

I tried copying this line from Ember Font Awesome

const { default: BuildTimeComponent, interpolateProperties } = require('ember-ast-helpers/build-time-component');

but I got an error

Cannot find module 'ember-ast-helpers/build-time-component'

and my node-fu is extremely weak.

Optional template part

I want to do something like:

this.layout`
{{#if title}}
  <title>{{title}}</title>
{{/if}}
<path d={{iconPath}}></path>`

For our layout, but this doesn't ever display the <title> tag.

Removing the if block I'm able to do:

this.layout`
<title>{{title}}</title>
<path d={{iconPath}}></path>`

but then I'm left with an empty <title></title> when the title isn't set.

Is this possible to do with these helpers or do I need to find a different path?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.