Skip to content

Simple boilerplate to develop widgets or components with Elm using web components.

License

Notifications You must be signed in to change notification settings

escherlies/elm-embed-boilerplate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Elm-Embed-Boilerplate

Simple boilerplate to develop widgets or components with Elm using web components.

About

For developing standalone widgets or components in Elm. They will have their own state and runtime so you can use them multiple times.

Config

Whats included?

Because writing declarative, purely functional web apps is fun!

Because no one wants to write CSS!

Because it just works right out-of-the-box.

Example usage

Import the script and use the custom component.

<!DOCTYPE html>

<head>
  <!-- ... -->
  <script src="widget-path/index.js"></script>
  <!-- ... -->
</head>

<body>
  <!-- ... -->
  <elm-counter />
  <elm-counter />
  <!-- ... -->
</body>

Todo

  • Add component interop via flags and ports (advanced use)

About

Simple boilerplate to develop widgets or components with Elm using web components.

Topics

Resources

License

Stars

Watchers

Forks