Giter VIP home page Giter VIP logo

wavefront's Introduction

ย 

Alpha, working prototype in development

A cutting edge frontend view layer library.

"Ugh not another one, off my lawn!" So what's the difference?

Wavefront featuers:

  • Delarative templating
  • View / Logic separation
  • Virtual DOM diffing (of course)
  • Reverse Virtual-DOM Interface
  • UI helpers
  • Synthetic and delegated event system
  • Navigation API for time travel, state management, history and routing

Why?

  1. Discourages vendor lock-in
  2. Light weight
  3. Templating syntax has the exact notation of HTML/ SVG
  4. Features a complete separation of logic and semantics
  5. Requires no transpiler
  6. Child nodes do not require an outer container
  7. First-class everything
  8. No dependencies
  9. No build eco-system or build dependencies
  10. A non-eco-system for integrating existing vanilla Js libraries
  11. SEO without requering server-side rendering

What are Declarative Templates

WaveFront...

import { div, h1, p, figure, figcaption, img } from 'wavefront'

export default ({ someClass, someId, greeting }) =>
/**
 * Greeting with three cat images.
 */
div({ class: someClass, id: someId },
    h1(greeting),
    p('How are you?'),
    figure({ class: 'images' },
        figcaption('Three different breeds of cats.'),
        img({ alt: 'Shorthair', src: 'shorthair.jpg' }),
        img({ alt: 'Siamese', src: 'siamese.jpg' }),
        img({ alt: 'Sphynx', src: 'sphynx.jpg' })
    )
)

HTML Output...

<div class="welcome" id="intro">
    <h1>Hello World!</h1>
    <p>How are you?</p>
    <figure class="images">
        <figcaption>Three different breeds of cats.</figcaption>
        <img alt="Shorthair" src="shorthair.jpg">
        <img alt="Siamese" src="siamese.jpg">
        <img alt="sphynx" src="sphynx.jpg">
    </figure>
</div>

MIT (C) Julien Etienne 2017

wavefront's People

Contributors

julienetie avatar

Watchers

 avatar  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.