- Notifications
You must be signed in to change notification settings - Fork1
Build SPAs to let users answer questions from a decision tree
License
bzg/choices
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Choices
lets you build a single page application to let users traverse a set of related options and get feedback from their choices.
- Copy
config-example.yml
toconfig.yml
and adapt it to your needs - Test your configuration with
clj -M:test
- Compile with
clj -M:js
- Your static files are ready in
resources/public/
- Copy
config-example.yml
toconfig.yml
and adapt it to your needs - Compile with
clj -M:fig
- Check your web browser on http://localhost:9500
Choices
come with three themes:bulma, the default,chota anddsfr.
Don’t use the dsfr theme unless you areauthorized to.
To set chota as the theme, runclj -X:set :theme chota
.
This will updateconfig.yml
andresources/public/index.html
to use chota as the theme when generating the static website.
Here are some examples whereChoices
is used:
- https://guide-juridique-logiciel-libre.etalab.gouv.fr/
- https://guide-juridique-open-data.etalab.gouv.fr/
- https://publiccodenet.github.io/assessment-eligibility/
Contributions are welcome. You can send feedback and patches to~bzg/dev@lists.sr.ht. For patches, please configure your local copy of the repository to add a prefix to the subject line of your emails:
~$ git config format.subjectPrefix 'PATCH choices'
If you like Clojure(script), please consider supporting maintainers by donating toclojuriststogether.org.
2019-2025 Bastien Guerry
This application is published under theEPL 2.0 license, except for the fonts inresources/public/fonts
.
About
Build SPAs to let users answer questions from a decision tree