Skip to content

Helium (second realase)

Latest

Choose a tag to compare

@spynetS spynetS released this 31 Aug 21:27
· 3 commits to main since this release

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>