j-d-carmichael / boats

Beautiful Open Api Template System
MIT License
57 stars 8 forks source link

Add mixinDirectory variable to enable the use of relative paths in mixins #46

Closed TomFreeman closed 3 years ago

TomFreeman commented 3 years ago

Scratching an itch.

Use Case: We would like to use a mixin to import blocks that reference other schema files.

(mostly, import all the common error responses in a big block)

So, have added a {{ mixinDirectory }} variable to use in mixins that gives the correct path when used with a relative path.