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.
- Host: GitHub
- URL: https://github.com/banyango/gornament
- Owner: Banyango
- Created: 2019-05-15T03:31:57.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2019-06-05T16:12:13.000Z (about 7 years ago)
- Last Synced: 2023-03-24T03:03:51.717Z (over 3 years ago)
- Topics: command-line, golang, template, webcomponents
- Language: HTML
- Size: 6.84 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
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.