oddscenes / component-compiler

NodeJS based compiler app - build entire components & websites with basic text

Home Page:https://oddscenes.com/blog/component-compiler-with-node

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Web Component Compiler

A NodeJS Based web component maker that takes a simple input script and outputs full HTML documents

  

  

Write Input Script

  • Location: /build/input.odd

Assets

  • Logo: /build/logo.svg
  • Hero Graphic: /build/hero.svg
  • Info Graphic: /build/info.svg

Output

  • Directory: /dist

Usage

  • Compile: node index.js

Dependencies

  • NodeJS

Layout Syntax

  • No indentation
  • Element = Content
  • Multiple inputs separated by commas

Supported Components

  1. title = My Page Title
  2. banner = Banner Text
  3. nav = item1, item2, item3, item4, (Button Text)
  4. hero = Intro Text, (Button Text)
  5. info = Info Headline, Info Subheadline
  6. description = Info Text
  7. footer = Contact Email

Sample input script

Location: /build/index.odd

title = Folo Robots

banner = 7 JANUARY 2020: 25% OFF On All Likes & Followers For A Limited Time!
nav = Home, About, Services, Contact Us, (Free Trial)

hero = Meet Real Robot Friends, (Get Started)

info = Find high quality robot friends from us, A new update coming soon!
description = Backfold manganoisation glossocyte cheirest viceard palladiophil pantacade megistic tetristic. Aurplasm centlepry adrenomancy gigamire icosaode thiodromous synsepalous.

footer = justin@oddscenes.com

About

NodeJS based compiler app - build entire components & websites with basic text

https://oddscenes.com/blog/component-compiler-with-node


Languages

Language:JavaScript 66.4%Language:CSS 33.6%