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

ramlwrap should include default templates for RamlDoc #49

Open
dreynolds opened this issue Apr 30, 2020 · 1 comment
Open

ramlwrap should include default templates for RamlDoc #49

dreynolds opened this issue Apr 30, 2020 · 1 comment
Labels

Comments

@dreynolds
Copy link
Contributor

Currently they are some in the test app, can they not just be added to ramlwrap itself? They can easily be overridden by users if they prefer.

@jmons
Copy link
Owner

jmons commented May 18, 2020

I looked into this one and realised I looked into it before. The issue is that whilst I can include the ramlwrap templates with a package_data option, the templates (currently) use template tags which, due to Djangos design, must be in a particular folder inside of a django-application - RamlWrap is not an django-application and :. does not contain the required folders.

We can either

a) create a small django-application which contains no views/models/etc (or refactor the current views into views which might be the right answer) and this would work, or
b) rewrite the template so that they don't need the template tag (not sure this is the right answer.

@jmons jmons added the V2.X label Dec 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants