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

resource loader documentation missing #32

Open
WolfgangFahl opened this issue Apr 14, 2015 · 1 comment
Open

resource loader documentation missing #32

WolfgangFahl opened this issue Apr 14, 2015 · 1 comment

Comments

@WolfgangFahl
Copy link

The link:
http://rythmengine.org/api/org/rythmengine/extension/ITemplateResourceLoader.html
in
http://rythmengine.org/doc/developer_guide.md#template-resource
is broken.

@WolfgangFahl
Copy link
Author

https://github.com/freewind/rythmfiddle/blob/master/app/models/InMemoryResourceLoader.java has an implementation of a ResourceLoader. The assumptions made in the API (Filesystem like Directory Structure) do not hold in my user case. I want to load template strings from other sources. Can the API be simplified for this?

For a simple test @include("aaa") I currently get two load(String path) calls with the parameter @include("aaa") and one tryLoadTemplate calls with parameter tmplName="aaa". I don't get what the API is trying to do here. My expectation would be that a single call getTemplateString(String path) would do. All the other logic could be IMHO hidden.

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

1 participant