An open API service indexing awesome lists of open source software.

https://github.com/kevinhellos/razorjs

0.6 kb JavaScript templating library
https://github.com/kevinhellos/razorjs

razorjs templating-library

Last synced: over 1 year ago
JSON representation

0.6 kb JavaScript templating library

Awesome Lists containing this project

README

          

# RazorJS
JavaScript library for Razor (@) templating.


⚠️ Warning: DO NOT USE in production


There is a bug in which all eventListener in the document is cancelled off.

# CDN link
```html

```

# Usage examples

**Data Binding (bind value)**

```html

@color

var color = "blue"; // set the value variable "color"

```
**Data Binding (bind js)**

```html
Click me

var sayhello = `onclick="alert('Hello')"`;

```
**Data Binding (bind component)**

```html
@goodmorning

var goodmorning = '<h3>Good Morning</h3>';

```