Skip to content
This repository was archived by the owner on Nov 29, 2024. It is now read-only.
This repository was archived by the owner on Nov 29, 2024. It is now read-only.

Make partials work in Alephant #41

@Guntrisoft

Description

@Guntrisoft

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:

self.template_path = File.dirname(__FILE__) + '/../../lib/templates/'

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?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions