hcss

command module
v0.0.0-...-6ef6033 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 24, 2019 License: MIT Imports: 2 Imported by: 0

README

hcss(WIP)

hcss is pure Go css pre-processor. This is created for using process of site-creation with Golang HTML Template. Generated CSS can be used as Golang Template(Because of Part of Go HTML Template remain).

Inspired by scss and gcss syntax, but this may be simpler than sass(scss).

suquiya is a beginner of Go programming, so pull requests and issues are appropriated. To be honest, please help suquiya...

Syntax

Variables(Now implimating....)

Before Compile

$main-color= #d3381c
$text-color: {{ .Site.Params.TextColor }}

h1{
    color:$main-color;
}
div{
    color: $text-color
}

After Compile

h1{
    color: #d3381c;
}

div{
    color: {{ .Site.Params.TextColor }};
}

Either of "=" or ":" can be used in Var definition. newline and ";" is interpreted as end of Var definition.

TO DO

  • Add features
    • mixin
    • nest
    • Comment
    • Extend(I can not decide whether implement it or do not now.)
    • Import

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL