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

single page simple example? #131

Open
jskye opened this issue Aug 16, 2021 · 1 comment
Open

single page simple example? #131

jskye opened this issue Aug 16, 2021 · 1 comment

Comments

@jskye
Copy link

jskye commented Aug 16, 2021

would be good if there was an example of using this on a single static html page.

without the overhead of the http-requests/server/api.

im sure i can get your example working if i spin up an express server.

but getting libraries to play nicely with just a http node server is not fun.
and your example even has another layer of abstraction with the template engine.
Your example needs to retrieve the json from the server.

these things make it more complex for someone not versed in these libraries (but with a good use case) to bootstrap.

since one of the goals of the library is to be able to use on static pages,
it would be good to just be able to include the library script and use it as is.
it sounds like you can, but theres not an example for this.
the example is more complex with the server, require, json, templates.

@veleek
Copy link

veleek commented Sep 24, 2021

Would be totally reasonable to include something in the documentation, but in the meantime I used this guide for integrating it into a static site and it worked great for me.

https://www.belter.io/eleventy-search/

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

2 participants