ember-code-snippet icon indicating copy to clipboard operation
ember-code-snippet copied to clipboard

Snippets not being populated by annotated files in app folder

Open chrisvdp opened this issue 9 years ago • 1 comments

I have a file call app/templates/snippets/buttons.hbs with the content of

{{!-- BEGIN-SNIPPET buttons --}}
{{#x-button}}
 Test
{{/x-button}}
{{!-- END-SNIPPET --}}

If I put console.log(path.join(destDir, name) + path.extname(filename) + ":"+ snippets[name]); at snippet-finder.js:63 I can see

/Users/cploeg/Web/bootstrap/web-designguide/tmp/snippet_finder-tmp_dest_dir-ojHOLcLw.tmp/buttons.hbs:{{#x-button}}
 Test
{{/x-button}}

But when I run the app I can see that snippet.js is empty

define("web-designguide/snippets", ["exports"], function (exports) {
  exports["default"] = {};
});

chrisvdp avatar Sep 30 '16 21:09 chrisvdp

Running Ember 2.8 on OSX El Cap with Node 5.11.1

chrisvdp avatar Sep 30 '16 21:09 chrisvdp