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

Is the combinator pattern harmfull for elm-embed? #9

Open
emmabastas opened this issue May 24, 2021 · 0 comments
Open

Is the combinator pattern harmfull for elm-embed? #9

emmabastas opened this issue May 24, 2021 · 0 comments
Milestone

Comments

@emmabastas
Copy link
Owner

Currently you can combine Embed.Task's with Embed.andThen, i.e one embedder can depend on the result of another one. You could for example use the value of an environment variable as the location for a configuration file read by an embedder, which then further affects the behavior of said embedder as it reads more files from disk. Now you have something that looks like a homecocked build system, which lies far outside the scope of elm-embed.

Are there situations where you genuinely need the power to combine embedders? The most legitimate example I can think of would be to have an environment variable to configure the location of a file to be read on disk. A workaround for that could be to use a symlink instead.

@emmabastas emmabastas added this to the 0.2.0 milestone May 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant