Skip to content
/ ficus Public

Quick Go + Htmx + Tailwind prototyping web server

Notifications You must be signed in to change notification settings

notbloom/ficus

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

On heavy development !

ficus

Quick Go + Htmx + Tailwind Frontend-Dev

Starts a local server to test htmx pages + tailwind designs. Install:

go install github.com/notbloom/ficus

Features

  • Quick local server
  • Filewatcher
  • Hotreloading
  • Auto recopile Tailwind
  • Go Html Templates

Commands

Start the server with defaults:

ficus [ -v | --verbose ]

Create a project template:

ficus init [ path ]

Usage:

Directories

project-folder
├── views 
│   ├── assets
│   │   ├── css
│   │   │    └── style.css        // Tailwind generated css
│   │   ├── js
│   │   │   └── reload.js        // Reload script 
│   ├── pages
│   │   ├── [page].html          // Pages served
│   │   └── [page].json          // Optional data passed to template 
│   ├── components
│   │   ├── [component].html     // Components (no layout) served
│   │   └── [component].json     // Optional data passed to template 
│   ├── index.html               // Page + components listing
│   └── layout.html              // Layout for pages
├── config.toml                  // Server configuration
└── tailwind.config.js           // Tailwind configuration

Todo

  • Init doesn't create assets folder or style.css
  • Correct folder structure
  • Include layout in files
  • Inject reload code in pages

About

Quick Go + Htmx + Tailwind prototyping web server

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published