Skip to content
@drawght

Drawght

Drawght is a data handler for texts without logical statements.

Drawght

Drawght is a data handler for texts without logical statements. The goal is to use a dataset (such as the subject of a text) to draft a document template. It can be considered a mini template processor.

Data is accessed through {} braces, replaced by their respective values.

Considering the following data:

title: Drawght is a very useful sketch
author:
  name: Hallison Batista
  email: [email protected]
  networks:
  - name: Github
    url: //github.com/hallison
  - name: Twitter
    url: //twitter.com/hallison
creation-date: 2021-06-28
publishing date: 2021-07-01
references:
- name: Mustache
  url: //mustache.github.io
- name: Handlebars
  url: //handlebarsjs.com
tags:
- Template
- Draft

Note that the creation-date and publishing date fields are normally identified by the parser.

In a template written in Markdown:

# {title}

Drawght is a good tool for writing draft documents using datasets without
logical statements.

Written by {author.name} <{author.email}>, created in {creation-date},
published in {publishing date} and tagged by {tags#1}.

- [{author.networks:name}]({author.networks:url})

Follow the news on [{author.networks#1.name}]({author.networks#1.url}).

The syntax was inspired by: 

- [{references:name}]({references:url})

Tags:

- {tags} (tagged by {author.name}).

The Drawght processing returns the following result:

# Drawght is a very useful sketch

Drawght is a good tool for writing draft documents using datasets without
logical statements.

Written by Hallison Batista <[email protected]>, created in 2021-06-28,
published in 2021-07-01 and tagged by Template.

- [Dev.to](//dev.to/hallison)
- [Github](//github.com/hallison)
- [Twitter](//twitter.com/hallison)

Follow the news on [Dev.to](//dev.to/hallison).

The syntax was inspired by:

- [Mustache](//mustache.github.io)
- [Handlebars](//handlebarsjs.com)

Tags:

- Template (tagged by Hallison Batista).
- Draft (tagged by Hallison Batista).

Popular repositories Loading

  1. drawght-js drawght-js Public

    Drawght parser implementation in JavaScript (NodeJS) programming language.

    JavaScript 1

  2. drawght-ruby drawght-ruby Public

    Drawght parser implementation in Ruby programming language.

    Ruby 1

  3. drawght-go drawght-go Public

    Drawght parser implementation in Go programming language.

    Go 1

  4. drawght.github.io drawght.github.io Public

    Drawght site.

    HTML

  5. .github .github Public

    Github profile

Repositories

Showing 5 of 5 repositories
  • drawght-ruby Public

    Drawght parser implementation in Ruby programming language.

    drawght/drawght-ruby’s past year of commit activity
    Ruby 1 MIT 0 0 0 Updated Sep 12, 2024
  • .github Public

    Github profile

    drawght/.github’s past year of commit activity
    0 0 0 0 Updated Aug 30, 2024
  • drawght-js Public

    Drawght parser implementation in JavaScript (NodeJS) programming language.

    drawght/drawght-js’s past year of commit activity
    JavaScript 1 MIT 0 0 0 Updated Aug 30, 2024
  • drawght.github.io Public

    Drawght site.

    drawght/drawght.github.io’s past year of commit activity
    HTML 0 0 0 0 Updated Jul 16, 2021
  • drawght-go Public

    Drawght parser implementation in Go programming language.

    drawght/drawght-go’s past year of commit activity
    Go 1 MIT 0 0 0 Updated Jul 14, 2021

People

This organization has no public members. You must be a member to see who’s a part of this organization.

Top languages

Loading…

Most used topics

Loading…