jmons / ramlwrap

Wrapping Raml around Django rest-api's
MIT License
8 stars 2 forks source link

`ramlwrap` should include default templates for RamlDoc #49

Open dreynolds opened 4 years ago

dreynolds commented 4 years ago

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 commented 4 years ago

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.