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

Templating revision #31

Merged
merged 10 commits into from
Oct 4, 2021
Merged

Templating revision #31

merged 10 commits into from
Oct 4, 2021

Conversation

tokebe
Copy link
Member

@tokebe tokebe commented Sep 15, 2021

(Continuation of #30 addressing #26 and biothings/biothings_explorer#147)

This PR moves all templating support to a new query builder, template_query_builder.js. Support is improved for arbitrarily templating JSON-type request bodies.

Additionally, a new filter function, wrap, is implemented, in order to wrap a string (or strings in an array) between two strings. Takes a start an end argument, which are the strings added to the start and end of the input string. If only start is supplied, end will use the same string as start.

This PR must be merged with the following additional PRs in order to work:

@tokebe tokebe marked this pull request as ready for review September 30, 2021 18:06
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

Successfully merging this pull request may close these issues.

None yet

2 participants