Releases: spynetS/RapidElements
Releases · spynetS/RapidElements
Helium (second realase)
This realase adds the "inline javascript" functionality which means you can run javascript inside html
<h1>Whats 9+10, {{ 11 + 10 }} </h1>or with other rapid-compontents
<template rapid-name="comp">
<script>
class comp extends Component{}
</script>
<!-- This sytax needs a class shown above to work -->
<h1> Your age + 10 is {{ parseInt(self.props.age) + 10 }} </h1>
<!-- This does not need a class because {age} will replaced by the value -->
<h1> Your age + 10 is {{ parseInt({age}) + 10 }} </h1>
</template>
<comp age="20" ></comp>First release
RapidElements is a small javascript library which adds components to your html with a small cost of a js file of 8KB.
Features
- Components
- Props
- Component scripting
- Single page application with router
Usage
Download the package-version.tar.gz which includes the js file and default components