This package has been deprecated

Author message:

this package has been deprecated

kitescript

0.0.1 • Public • Published

kiteScript

----- dont worry, you won't ever have to touch that yucky html ever again -----

The core goal behind kiteScript is to make web development easy and fast. One of the biggest issues that I personally have with web development is that you have to learn between one and 4 languages to get everything to work. I'd rather be able to do it all with one language, all at the same time. Separation is fine, but not on a language level. I'd rather there be separation just between parts of the document.

kiteScript is a single language which compiles into Javascript that can run on a server (using Node.js) and in a client webpage. Any code that takes place in the global event runs code on the server, while the rest is saved for the client to run. This allows the server to generate the webpage, and the client to run any remainder of the code that is not needed immediately (such as elements, css, etc).

The basis of the kiteScript language is CSS-style selectors. The language has no keywords, instead, all operations use symbols.

Here's some simple examples of using kiteScript:

div#content:
    p.highlight:
        "I'm the content of the first paragraph."
    p:
        "I'm the content of the second paragraph."

The resulting html that the client would receive is this:

<div id="content">
    <p class="highlight">
        I'm the content of the first paragraph.
    </p>
    <p>
        I'm the content of the second paragraph.
    </p>
</p>

You may be wondering what the point of using this language is when you have a language like Emmet which has been used for a very long time. The main reason is you also have support for scripting within your document generation, and you can switch back and forth between them seamlessly.

div#fruits:
    $fruits = "apple", "banana", "orange"
    !for [ $fruits ]:
        $fruit = &
        span.fruit: $fruit

And the result:

<div id="fruits">
    <span class="fruit">apple</span>
    <span class="fruit">banana</span>
    <span class="fruit">orange</span>
</div>

The best part of kiteScript is that this output can be compiled on the server side or on the client side. It's completely up to you. You can control the document markup, the style, and the scripts all at the same time.

Once you start, you'll never go back.

Package Sidebar

Install

npm i kitescript

Weekly Downloads

0

Version

0.0.1

License

MIT

Last publish

Collaborators

  • yuudaari