andruekonst / css2js-template-engine

CSS-styled language compilator written in js

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

CSS2JS-template-engine

CSS-styled language compilator written in js

Algorithm:

Converting css-styled tags to html, adding content, adding childs, generating js to add events, css and additional html parameters

Syntax:

Tag expression:

tag-type#tag-id.tag-class1 tag-class2

Content block: content: "content";

Example:

div#test-id.test class{
  content: "Test";
  div#child.child styled button{
    onclick: test();
    a{
      content: Test Button;
      href: #;
    }
  }
}

About

CSS-styled language compilator written in js


Languages

Language:JavaScript 100.0%