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

Snippets in folder hierarchy aren't found

Open mike-north opened this issue 10 years ago • 4 comments

For a rather complex addon, I aimed to create a hierarchy of snippets

buttons/
   simple.hbs
   with-icon.hbs
   floating.hbs
navbar/
   responsive.hbs
   with-dropdown.hbs

It seems that the snippets are not found. I'll provide a simple example soon

mike-north avatar Jun 11 '15 06:06 mike-north

It seems this is true if your templates are within pods behind a podModulePrefix as well.

runspired avatar Oct 17 '15 03:10 runspired

Does the snippetPaths option mentioned in the README solve this issue?

ef4 avatar Apr 27 '16 19:04 ef4

How do I show inline snippets from an addon?

lolmaus avatar Jul 11 '16 20:07 lolmaus

@lolmaus: by adding this to ember-cli-build:

{
    snippetSearchPaths: ['app', 'node_modules/addon-name/addon']
}

:+1:

lolmaus avatar Jul 11 '16 20:07 lolmaus