Giter Site home page Giter Site logo

htoml's Introduction

HTOML

HTOML, also known as HyperText Obvious Language, is a transpiler written in Rust that transpile TOML that follows a specific protocol to HTML.

This project is in development and also not production-ready.

HTOML Protocol

HTOML Protocol is that specific protocol in question. It limits how TOML can be translated to HTML and aims to provide a smooth learning curve to HTML developer and a modern way to edit your HTML page.

It should noticed that HTOML and HTOML protocol is two separated things. HTOML is a transpiler that transpile TOML file that follows HTOML Protocol to valid HTML. HTOML Protocol is just a protocol. It is neither a transpiler nor a compiler.

Getting started

  1. Create a TOML file with extension .toml.

  2. Edit this file with your favourite editor.

  3. Entering the editor, type html = "html". This key-value pair is for declaring the HTML version, like <!DOCTYPE html>. It will be a declaration of HTOML file.

  4. (TODO)

Currently support

  1. Some HTML elements

    • Most of the non-empty/void elements
    • Simple empty/void elements:
      • br
      • hr
    • Simple head elements:
      • title
    • Element a with href attribute
  2. HTML version and lang attribute for body element

LICENSE

HTOML (also include HTOML protocol) is created under the MIT License. Please see LICENSE file for more inforamtion.

htoml's People

Contributors

onelone852 avatar

Stargazers

Gabe Meikle avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.