Skip to content

Embed to express app #445

Description

@antirek

Feature Description
Embed evidence markdown view and render to express app.

Goal of Feature
Fast development complex app

Activity

  1. archiewood commented on Nov 3, 2022

    @archiewood
    Contributor

    Hey @antirek,

    We've been talking about creating a better embedded experience for Evidence, so it's great to hear that it's something you're trying to do. Can you give me a better idea of what it is you're trying to achieve:

    1. Embed specific components from an Evidence project into your express app (eg Charts, Tables, Text snippets etc).
    2. Compile "Evidence flavoured markdown" pages into HTML that you can insert as pages in your express app.
    3. Something else?

    If the answer is 2, then there may be a way to achieve that today:

    Evidence uses SvelteKit, and compiles "Evidence Markdown" in the following way

    1. SQL queries are extracted and run against your database, and stored in js objects.
    2. Markdown is rendered into HTML pages. Any components are populated with data from the js objects.
    3. If you run npm run build then static HTML pages are generated. Though I haven't done it myself I believe these could be served by an express app

    If the answer is 1, then we don't have a way to achieve that well today, but it's definitely on our to-do list!

  2. locked and limited conversation to collaborators on Aug 14, 2024
  3. converted this issue into a discussion #2351 on Aug 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions