canjs / steal-stache

A plugin that allows you to import stache templates with stealjs.
https://canjs.com/doc/steal-stache.html
MIT License
4 stars 2 forks source link

Is bang syntax "[...]!steal-stache" in README outdated? #28

Open leoj3n opened 7 years ago

leoj3n commented 7 years ago

In this repo's README, Isn't the following bang syntax outdated?

STACHE_MODULE_NAME!steal-stache

It's a bit confusing what that's supposed to be saying, at least to me upon first encounter.

Perhaps STACHE_MODULE_NAME would make more sense as, I think, RELATIVE_FILE_PATH?

Regarding bang syntax, for instance the docs here don't say anything about bang syntax and avoids the ugly STACHE_MODULE_NAME by saying:

To load a CSS module in your JavaScript code, just import it just as you would any other module

leoj3n commented 7 years ago

Ah, well, I guess Steal can do some logic on that "STACHE_MODULE_NAME" so it can be ~/[...].stache or projectname/[...].stache so only sometimes a file path.

I think that could be explained in the README too.