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

Walder support for queries for layouts #96

Open
renevds opened this issue Jul 29, 2021 · 0 comments
Open

Walder support for queries for layouts #96

renevds opened this issue Jul 29, 2021 · 0 comments

Comments

@renevds
Copy link
Contributor

renevds commented Jul 29, 2021

Certain layouts require date from a query, currently the only way to make this work is by adding the necessary query to every view that uses this layout.

Perhaps a system could be implemented where when rendering with a layout, Walder will check if a query has been defined for this layout.

Maybe something like the following:

openapi: 3.0.2
info:
  title: 'Distributed Knowledge Graphs'
  version: 1.0.0
x-walder-datasources:
  - http://127.0.0.1:8080/sample.ttl
  - https://natadimou.com/#me
paths:
  ...
#layouts can optionally be listed here to have queries defined
layouts:
  layout.pug:
    x-walder-query:
      ...
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