You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We'd like to include common mustache templates using mustache partials.
Currently by default it will look for partials in the current directory, but as we have different queues in the election data renderer project it's not possible to store them in the same directory.
We have got around this issue by setting the following in our view model:
It would be nice for this to be set somewhere in Alephant::Views::Base - however the only caveat with that, is that '/../../lib/templates/' is very specific to the election data renderer project.
Perhaps we can call a static method on Alephant::Views::Base from the election data renderer project which sets a path for partials?
The text was updated successfully, but these errors were encountered:
We'd like to include common mustache templates using mustache partials.
Currently by default it will look for partials in the current directory, but as we have different queues in the election data renderer project it's not possible to store them in the same directory.
We have got around this issue by setting the following in our view model:
It would be nice for this to be set somewhere in Alephant::Views::Base - however the only caveat with that, is that '/../../lib/templates/' is very specific to the election data renderer project.
Perhaps we can call a static method on Alephant::Views::Base from the election data renderer project which sets a path for partials?
The text was updated successfully, but these errors were encountered: