Giter Club home page Giter Club logo

Comments (5)

gampleman avatar gampleman commented on August 28, 2024 2

Translation

I built a thing that downloaded JSON files at build time from a translation service and generated elm files full of strings. An environment variable was used to construct the URL. We then built the app once for each supported language.

from elm-embed.

emmabastas avatar emmabastas commented on August 28, 2024

Target different servers for dev & prod

In production an app uses the production server. But when developing it can necessary to use a local dev server instead. Embedding an environment variable can be used to fix this.

from elm-embed.

emmabastas avatar emmabastas commented on August 28, 2024

Parse and embed markdown

Markdown is commonly used for static pages and is simpler than writing a page in Elm. elm-embed could be used to parse and embed markdown pages in an Elm application. This is an important component of making a Jamstack app.

It is currently possible to embed and parse a single page. But for elm-embed to be usable for this it would be necessary for a single embedder to parse multiple files. It would also be necessary for an embedder to output a record with the paths and other metadata for each file. This means that in addition to parsing multiple files, an embedder would also need to embed a record with a type that is determined at build-time.

from elm-embed.

thelayeredmind avatar thelayeredmind commented on August 28, 2024

No idea, if this is still maintained, but here we go:

I am going to Use elm as a form of dissemination for my Master's project. At least that is my plan. The idea is to explore different musical environments in Haskell noting down the process in Markdown documents (one for each environment). A bit like Jupyter Notebooks. These will then be used as input for an interactive web page (written in Elm) with animations, multimedia and transitions to explore the creative process across abstractions and library designs

The use case here is to provide a seamless N (multiple Markdowns) to 1 (Single Page with sections) without overkilling it like with Elm-Pages. Embedding a few files into my webpage at runtime is exactly the full feature-set I need.

Also I am using Windows, fortunately there is WSL2 😂

from elm-embed.

emmabastas avatar emmabastas commented on August 28, 2024

Wow, I'm so glad to se you'd find elm-embed potentially useful. You are correct that this is no longer maintained, and it never really got into an incredibly useful state either. I have vague memories (I'm no longer active in the Elm community) of other Elm projects that covered/are tangential to this and that maybe would be interesting for you to check out if you haven't already

If you want to use elm-embed I think you'd need to do some work on the codebase (elm-embed is a fork of the elm compiler so that's what type of complexity we're looking at), and I'd be happy to give pointers.

from elm-embed.

Related Issues (11)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.