All Projects → CodHeK → Voila

CodHeK / Voila

Licence: other
A simple and easy to grasp front-end framework that lets you modularise and stuff logic into your static HTML 😎

Programming Languages

javascript
184084 projects - #8 most used programming language
HTML
75241 projects

Projects that are alternatives of or similar to Voila

Puddles
Tiny vdom app framework. Pure Redux. No boilerplate.
Stars: ✭ 24 (+9.09%)
Mutual labels:  frontend-framework
Javascript Code Challenges
A collection of JavaScript modern interview code challenges for beginners to experts
Stars: ✭ 2,710 (+12218.18%)
Mutual labels:  frontend-framework
Barekit
A bare minimum responsive framework
Stars: ✭ 201 (+813.64%)
Mutual labels:  frontend-framework
Angular Interview Questions
A list of helpful Angular interview questions you can use to interview potential candidates, test yourself or completely ignore.
Stars: ✭ 967 (+4295.45%)
Mutual labels:  frontend-framework
React Antd Admin
用React和Ant Design搭建的一个通用管理后台
Stars: ✭ 1,313 (+5868.18%)
Mutual labels:  frontend-framework
Squark
Rust frontend framework, for web browser and more.
Stars: ✭ 162 (+636.36%)
Mutual labels:  frontend-framework
Displayjs
A simple JavaScript framework for building ambitious UIs 😊
Stars: ✭ 590 (+2581.82%)
Mutual labels:  frontend-framework
frontie
Frontie is a front-end boilerplate. Gulp | Twig.js | Sass | Autoprefixer | Browsersync | Bootstrap 4 Grid System & Responsive Breakpoints
Stars: ✭ 28 (+27.27%)
Mutual labels:  frontend-framework
Peasy Js
A business logic micro-framework for javascript
Stars: ✭ 121 (+450%)
Mutual labels:  frontend-framework
Quasar
An experimental rust-to-{wasm,asmjs} frontend framework.
Stars: ✭ 180 (+718.18%)
Mutual labels:  frontend-framework
Rakuten React Kit
Rakuten React kit
Stars: ✭ 72 (+227.27%)
Mutual labels:  frontend-framework
Shopify Embedded App Frontend Framework
deprecated - Shopify Embedded App Frontend Framework sponsored by
Stars: ✭ 85 (+286.36%)
Mutual labels:  frontend-framework
Terra Core
Terra offers a set of configurable React components designed to help build scalable and modular application UIs. This UI library was created to solve real-world issues in projects we work on day to day.
Stars: ✭ 167 (+659.09%)
Mutual labels:  frontend-framework
Alumna
[Alpha release of v3] Development platform for humans / Plataforma de desenvolvimento para humanos
Stars: ✭ 32 (+45.45%)
Mutual labels:  frontend-framework
Tko
🥊 Technical Knockout – The Monorepo for Knockout.js (4.0+)
Stars: ✭ 227 (+931.82%)
Mutual labels:  frontend-framework
Amis
前端低代码框架,通过 JSON 配置就能生成各种页面。
Stars: ✭ 8,930 (+40490.91%)
Mutual labels:  frontend-framework
Seed
A Rust framework for creating web apps
Stars: ✭ 3,069 (+13850%)
Mutual labels:  frontend-framework
decimal-clock
1 day = 10 decimal hours, 1 decimal hour = 100 decimal minutes, 1 decimal minute = 100 decimal seconds
Stars: ✭ 17 (-22.73%)
Mutual labels:  frontend-framework
InDiv
an angular like web mvvm framework.一个类 angular 前端框架。https://dimalilongji.github.io/InDiv
Stars: ✭ 88 (+300%)
Mutual labels:  frontend-framework
Semantic Ui React
The official Semantic-UI-React integration
Stars: ✭ 12,561 (+56995.45%)
Mutual labels:  frontend-framework

logo

voila build

Link to the presentation

VoilaJS is a SAML ( Syntactically awesome markup language ) which boosts your static front-end development process by allowing you to write your HTML in the form of modules, very similar to React but, with a much less steeper learning curve! ( All you need to know is to write JSON and that's easy! 😛)

The best part is HTML just became programmable 😛 !! But how ?

What we thought was, CSS has it's programmable counter-part ( SASS ) why not HTML ? Guess what, now it has one, we call it SAML ( full form above ).

Just like other front-end frameworks, we too have out our own CLI to bootstrap your starter code.

Installation :

$ npm i -g voila-cmd

Next, we need to initialize a project, it's simple!

$ voila init

This generates a voila.json file in your project directory and also a config.js file where you write all your HTML logic, sound's weird saying that doesn't it! 😛

{
  title: 'forms',
  description: 'forms',
  css: 'Bootstrap',
  entry: 'index.html',
  author: '',
  License: 'ISC',
  git: false,
  config: 'config.js'
}

You can also add git repository to your project, voila automatically initializes a empty git repository with the needed files in .gitignore.

$ cd directory
exports.root = [
  {
    div: [
      {
        id: 'root',
        //ADD YOUR ELEMENTS HERE
        div: [
          {
            class: 'col-md-3'
          }
        ],
        h1: [
          {
            class: 'title1',
            value: 'first h1'
          },
          {
            class: 'title2',
            value: 'second h1'
          }
        ]
      }
    ]
  }
]

Above, is an example of a simple configuration, ( configurations need to be written in the JSON format ).

This JSON gets compiled to the HTML below:

<root >
  <div id="root" >
    <div class="col-md-3" >  </div>

    <h1 class="title1" > first h1 </h1>

    <h1 class="title2" > second h1 </h1>
  </div>
</root>

Once, you've written your own configuration, voila needs to parse and compile it into HTML, to do that run...

$ voila load

We have built our own parser that parses the JSON configurations and converts them into it's equivalent HTML syntax.

This HTML is can be viewed by starting the server, just run ...

$ voila start

Writing HTML in Component Style :

  • config.js
const { main } = require('./components/main');
const { navbar } = require('./components/navbar');

let Main = main();
let Navbar = navbar();

exports.root = [
  {
    div: [
      {
        id: 'root',
        //ADD YOUR ELEMENTS HERE
        Navbar,
        Main
      }
    ]
  }
]
  • main.js
module.exports.main = () => {
  return [
    {
      class: 'container',
      div: [
        {
          class: 'starter-template',
          h1: [
            {
              value: 'Bootstrap starter template'
            }
          ],
          p: [
            {
              class: 'lead',
              value: 'Use this document as a way to quickly start any new project.<br> All you get is this text and a mostly barebones HTML document.'
            }
          ]
        }
      ]
    }
  ]
}
  • navbar.js
module.exports.navbar = () => {
  return [
    {
      class: 'navbar navbar-expand-md navbar-dark bg-dark fixed-top',
      a: [
        {
          class: 'navbar-brand',
          value: 'Logo'
        }
      ],
      button: [
        {
          class: 'navbar-toggler',
          type: 'button',
          span: [
            {
              class: 'navbar-toggler-icon',
            }
          ]
        }
      ]
    }
  ]
}

Examples :

We have added 2 examples one for Bootstrap and other for Materialize :

$ git clone this repository / download zip
$ cd example
$ voila start

View your static webpage server on http://localhost:(port)

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].