Closed mulderp closed 10 years ago
Nice extraction, just so you know what is possible https://github.com/sideshowcoder/canned#awesome-so-what-is-supported has this outlined, is there anything you are confused about there? I'd love to improve but don't know how currently, is the syntax unclear maybe?
I used respondWith...
now. Indeed describes better what the code does.
Let me know what you think.
yeah ! :)
This is a minor refactoring that possibly helps to improve the readabiity of the mapping files to resources.
Actually, I am still a bit confused about what mappings are possible:
_canDirectory
If this is correct, maybe it would help to extract one more method:
_canSingleFile
or similar. Then, the main mapping function would become:And it would be clearer to me how it works. What do you think?