Skip to content

monofuel/nimponents

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Nimponents

Example

<!DOCTYPE html>
<html lang="en">
<head>
  <script src="example.js"></script>
</head>
<body>
  <my-component/>
</body>
</html> 
import nimponents

# Define our custom web element
type MyComponent = ref object of WebComponent
proc connectedCallback(e: MyComponent) =
    e.innerHTML = "<p>Hello from MyComponent2</p>"

# register our custom web element
setupNimponent("my-component", connectedCallback = connectedCallback)

About

Web Components for Nim Library

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages