Coder Social home page Coder Social logo

pipedent's Introduction

Overview

PipeDent is a tool for creating HTML with small snippets of text that provide the semantics of HTML without the syntax. It is implemented in Coffeescript.

You can run it from the browser or run it from node.js.

Syntax

  • Use indentation for HTML blocks. (Use PASS for empty blocks.)
  • Use pipes to separate markup from content. Content goes to the right of pipes.

Installation

The best way to get started with PipeDent is to run the demo with two simple commands

  git clone [email protected]:showell/PipeDent.git
  cd PipeDent && open demo.htm 

For usage in the browser, follow the model of example.htm.

For usage on the server, follow the model of example.coffee.

To convert files from the command line, see convert.js.

Once you are ready to create your own programs, install pipedent.js on your web server or in a place where your node.js programs can find it.

Examples

See the Installation instructions for how to run the demo program.

You can see a full example here:

Building a Readme dynamically

Here is an example PipeDent translation:

INPUT

h1 | Overview
div id="overview"
  p
    | PipeDent is a tool for creating HTML with small snippets
    | of text that provide the semantics of HTML without the
    | syntax.  It is implemented in Coffeescript.
  p
    | You can run it from the browser or run it from node.js.
h1 | Syntax
ul
  li
    | Use indentation for HTML blocks.  (Use PASS for empty blocks.)
  li
    | Use pipes to separate markup from content.  Content goes to
    | the right of pipes.
h1 | Installation
p
  | The best way to get started with PipeDent is to run the
  | demo with two simple commands
pre
  | git clone [email protected]:showell/PipeDent.git
  | cd PipeDent && open demo.htm 
p | For usage in the browser, follow the model of example.htm.
p | For usage on the server, follow the model of example.coffee.
p | To convert files from the command line, see convert.js.
p
  | Once you are ready to create your own programs, install
  | pipedent.js on your web server or in a place where your
  | node.js programs can find it.
h1 | Examples    
p
  See the Installation instructions for how to run the demo program.
p
  | You can see a full example here:
p
  a href="https://github.com/showell/PipeDent/blob/master/build_readme/build.coffee" | Building a Readme dynamically
p
  | Here is an example PipeDent translation:
div
  h2 | INPUT
  pre id="input"
    PASS
div
  h2 | HTML OUTPUT
  pre id="output"
    PASS

HTML OUTPUT

<h1>Overview</h1>
<div id="overview">
  <p>
    PipeDent is a tool for creating HTML with small snippets
    of text that provide the semantics of HTML without the
    syntax.  It is implemented in Coffeescript.
  </p>
  <p>
    You can run it from the browser or run it from node.js.
  </p>
</div>
<h1>Syntax</h1>
<ul>
  <li>
    Use indentation for HTML blocks.  (Use PASS for empty blocks.)
  </li>
  <li>
    Use pipes to separate markup from content.  Content goes to
    the right of pipes.
  </li>
</ul>
<h1>Installation</h1>
<p>
  The best way to get started with PipeDent is to run the
  demo with two simple commands
</p>
<pre>
  git clone [email protected]:showell/PipeDent.git
  cd PipeDent && open demo.htm 
</pre>
<p>For usage in the browser, follow the model of example.htm.</p>
<p>For usage on the server, follow the model of example.coffee.</p>
<p>To convert files from the command line, see convert.js.</p>
<p>
  Once you are ready to create your own programs, install
  pipedent.js on your web server or in a place where your
  node.js programs can find it.
</p>
<h1>Examples    </h1>
<p>
  See the Installation instructions for how to run the demo program.
</p>
<p>
  You can see a full example here:
</p>
<p>
  <a href="https://github.com/showell/PipeDent/blob/master/build_readme/build.coffee">Building a Readme dynamically</a>
</p>
<p>
  Here is an example PipeDent translation:
</p>
<div>
  <h2>INPUT</h2>
  <pre id="input">
  </pre>
</div>
<div>
  <h2>HTML OUTPUT</h2>
  <pre id="output">
  </pre>
</div>

pipedent's People

Stargazers

Michael Wills avatar

Watchers

James Cloos 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.