mudgen / webscript

Webscript is a Javascript library for creating DOM elements. Use it to create web applications. It is like HTML but it is Javascript. It is designed to work with existing libraries.

Home Page:https://mudgen.github.io/webscript/docs/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Webscript

Webscript is an HTML-like Javascript syntax for defining, creating, composing and manipulating DOM elements. It is for creating web pages, web sites, web applications. It is like HTML but it is Javascript.

Read the documentation: https://mudgen.github.io/webscript/docs/

  1. It has zero dependencies.
  2. It is small. It's size is about 2KB.

Webscript:

  1. Replaces JSX in React. 
  2. Replaces HTML templating languages.
  3. Replaces HTML in Javascript applications.
  4. Replaces HTML in your Javascript library.

Quick Example

HTML:

<div class="card-image">
  <img src="images/sample-1.jpg" alt="Sample Image" />
  <span class="card-title">Card Title</span>
</div>

Webscript:

div.class`card-image`(
  img.src`images/sample-1.jpg`.alt`Sample Image`,
  span.class`card-title`("Card Title"))

Please see the documentation here: https://mudgen.github.io/webscript/docs/

Follow me on twitter: https://twitter.com/mudgen

About

Webscript is a Javascript library for creating DOM elements. Use it to create web applications. It is like HTML but it is Javascript. It is designed to work with existing libraries.

https://mudgen.github.io/webscript/docs/

License:MIT License


Languages

Language:JavaScript 95.5%Language:CSS 4.1%Language:HTML 0.3%