Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add method to Template to retrieve list of registered templates #412

Closed
mojavelinux opened this issue Oct 22, 2013 · 3 comments
Closed

Add method to Template to retrieve list of registered templates #412

mojavelinux opened this issue Oct 22, 2013 · 3 comments

Comments

@mojavelinux
Copy link
Contributor

Add a method to the Opal Template class that provides access to the list of registered templates. Currently, there is no way to know what got registered, which could be convenient for rendering a template in response to some sort of request.

Here's a suggestion for the API:

def paths
  @_cache.keys
end
@adambeynon
Copy link
Contributor

@mojavelinux Yeah, sounds fine to me. If you open a pull request I will merge it in, or I can add it later (tomorrow?) once I finish on reworking compiler nodes.

@adambeynon
Copy link
Contributor

That commit implements the method. paths seems the best choice of name as well.

@mojavelinux
Copy link
Contributor Author

Yea ha! Thanks!

hmdne pushed a commit to hmdne/opal that referenced this issue Jan 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants