An open API service indexing awesome lists of open source software.

https://github.com/banyango/gornament

A simple web component template bundler for the command line.
https://github.com/banyango/gornament

command-line golang template webcomponents

Last synced: 3 months ago
JSON representation

A simple web component template bundler for the command line.

Awesome Lists containing this project

README

          

# Gornament

Web Component templator.

Use Gornament to inject your webcomponent `` as a bundle into your html pages.

`` has been deprecated in Chrome and not implemented in Firefox.

I wanted a simple way to bundle up all my WebComponents and place them into my html without having to resort to Webpack or otherwise. So I wrote this little command line tool.

Hopefully someone else finds it handy.

### How to Build

Install Go

`go build gornament.go`

### Usage

In your project dir
`./gornament`

-> gornament will look in
- ./components for html templates.
- ./templates for the html to add bundle to. Add {{ .Templates }} in the `` of your html page.

-> gornament will output the html in ./public

##### Other Options
`-mapurl= : This will generate a sitemap.txt for your site.`

### Example

Check out the example dir for an example.