0.2.0 • Published 2 years ago

velvet-lang v0.2.0

Weekly downloads
-
License
-
Repository
-
Last release
2 years ago

⚠️ Velvet is still under development and many features of the final version are not yet present. It is possible that the syntax or the way Velvet is used will change in future versions.

Installation

To use Velvet you just have to install it with your favorite package manager:

# NPM
$ npm install velvet-lang --save-dev

# Yarn
$ yarn add velvet-lang --dev

# PNPM
$ pnpm add velvet-lang --save-dev

How To Use

import Velvet from "velvet-lang";

const html = Velvet.parse("h1 Hello world");

Syntaxe

Note A website with documentation on the syntax will be released once the project is more progressed.

Simple examples

h1 Hello world
// <h1>Hello world</h1>


h1 Hello
  span world
// <h1>Hello <span>world</span></h1>

h1(data-test="title") Hello world
// <h1 data-test="title">Hello world</h1>
0.2.0

2 years ago

0.1.9

2 years ago

0.1.6

2 years ago

0.1.4

2 years ago

0.1.3

2 years ago

0.1.2

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago

0.0.13

2 years ago

0.0.12

2 years ago

0.0.11

2 years ago

0.0.10

2 years ago

0.0.9

2 years ago

0.0.8

2 years ago

0.0.7

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago