Comments (5)
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.
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.
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.
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.
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
- https://github.com/dillonkearns/elm-markdown
- https://github.com/mdgriffith/elm-codegen
- https://discourse.elm-lang.org/t/write-cli-scripts-in-elm-io-monad/7543
- https://www.lamdera.com/
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)
- `elm-generate` shares `elm-stuff` with `elm make`
- Unexposed tasks are run
- `elm-generate` fails when utilizing cache
- `elm-generate` shares package cache with `elm`
- `elm-embed init` crashes if `elm-embed-scripts` exists but is a file
- Removing type annotation crashes elm-embed
- `elm-embed run` should ignore dotfiles
- Is the combinator pattern harmfull for elm-embed?
- Make behaviour of paths more obious when using `Embed.File.read`
- Binaries for osx and windows
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from elm-embed.