Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Als try to resolve partials relative to the containing template #25
I wrote some code to also try to resolve a partial relative to the directory the referencing template is in. I also added a test file to test this behaviour, and made sure there are no regressions. (It however may cause some partials to resolve that would previously just show up as errors.)
I need this because I am serving up different sets of templates (with different 'roots') for different requests. So I can not use the mu.root setting. But invoking Mu with an absolute filename and relying on relative partials (this commit) works very well.