Skip to content

Latest commit

 

History

History
56 lines (49 loc) · 1.45 KB

Readme.md

File metadata and controls

56 lines (49 loc) · 1.45 KB

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