Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -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.
Binary file added preview.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
31 changes: 31 additions & 0 deletions preview.vto
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
---
title: Hello world
draft: true
drinks:
- coffee
- tea
- water
---

<html lang="en">
<head>
<meta charset="utf-8">
<title>{{ title }}</title>
</head>
{{> const name = 'John Doe' }}
<h1>Hello, {{ name }}</h1>

{{ if draft }}
<small>This is a draft</small>
{{ /if }}

{{ layout "article.vto" }}
{{ content }}
{{ /layout }}

<ul>
{{ for drink of drinks }}
<li>{{ drink |> toUpperCase() }}</li>
{{ /for }}
</ul>
</html>