diff --git a/README.md b/README.md new file mode 100644 index 0000000..1faa1cd --- /dev/null +++ b/README.md @@ -0,0 +1,20 @@ +# Vento for Sublime Text + +Provides syntax definitions for Vento (in HTML). Suports Sublime Text 3126 and up. + +![Preview of the syntax highlighting](preview.png) + +## Installation + +Installs like any other package: + +- Open Sublime Text +- Open the Command Palette ("Tools > Command Palette…" or ctrl + shift + P) +- Select "Package Control: Install Package" +- Search and select "Vento" + +Alternatively, if you want to install it from the source, clone this repository into Sublime's `Packages/` directory (or symlink it there). + +## Usage + +To use the syntax highlighting, select "HTML (Vento)" (or "Plain text (Vento)"). This should be automatically selected when opening files that use a `.vto` extension. diff --git a/preview.png b/preview.png new file mode 100644 index 0000000..72a10a5 Binary files /dev/null and b/preview.png differ diff --git a/preview.vto b/preview.vto new file mode 100644 index 0000000..6e0acdb --- /dev/null +++ b/preview.vto @@ -0,0 +1,31 @@ +--- +title: Hello world +draft: true +drinks: +- coffee +- tea +- water +--- + + + + + {{ title }} + + {{> const name = 'John Doe' }} +

Hello, {{ name }}

+ + {{ if draft }} + This is a draft + {{ /if }} + + {{ layout "article.vto" }} + {{ content }} + {{ /layout }} + + +