Closed whatyouhide closed 10 years ago
What is result of SHT
keys? You can look at object at Chrome of Firefox console.
I wrote it in the issue. I got something like this:
Object {tags/single_tag: function}
Is folder highlighted_posts
added in manifest?
I didn't specify any directories in the manifest since I used (actually as suggested in the README) require_tree
, in practice requiring templates/**/*
.
I'm telling you, it's the underscore in the directory name that freaks sht_rails out.
Just use the same names for folder and file. All works as expected: http://monosnap.com/image/5T3ZpsYbckSuPV79HM9HX9plZrEJNg
Example of app: http://smt.rw.rw/ Source code: https://github.com/le0pard/st_rails_example
Closing this issue too, everything works with underscores in the template paths. Thanks!
Directory structure:
SHT['tags/single_tag']
works fine,SHT['highlighted_posts/option']
isundefined
.wtf? It happens only with directory names, not with filenames.