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

https://github.com/kevinhellos/xeauk-js

Lightweight and minimal 5kb JavaScript web templating engine
https://github.com/kevinhellos/xeauk-js

templating-engine

Last synced: 9 months ago
JSON representation

Lightweight and minimal 5kb JavaScript web templating engine

Awesome Lists containing this project

README

          

# Xeauk JS
image

Welcome to Xeauk JS. Xeauk JS brings the power of JavaScript directly in your HTML.
No more writing complicated codes to bind variables to HTML.


On top of templating, Xeauk JS allows you to write JavaScript expression directly inside the @{} template.

# Installation via CDN
**CDN installation is recommended**
```html

```

# Setting up
**How to correctly setup Xeauk JS**

View the docs here
```html



Xeauk JS Demo


@{text}


// STEP 3: create an instance of Xeauk
// For this demo, the instance is "x"
var x = Xeauk;

// STEP 4: Define the controller from the .controller()
// and pass in "myController"
x.controller("myController");

// Step 5: Define a dummy data
var text = "Hello World from Xeauk JS";

// Step 7: Compile the instance
// ONLY COMPILE at the end of all the JavaScript
// Else it will not work.
x.compile();

```