Static is a new project from DevDojo that is a simple site generator that uses NodeJS to compile your HTML into a fast and elegant static website.
Some of the features include:
-
TailwindCSS Integration
Add the {tailwindcss} shortcode to the head of your HTML file, and you're ready to rock! -
Page-based routing
Add a new file to your pages directory, and Static will automatically create a route. -
HTML Includes
Create reusable HTML elements by utilizing the included tags, and use attributes to pass in data. -
Create Content
Add a Markdown file to the content folder, and it will automatically create a page.
Static Usage
After you install the Static NPM package, you'll have three new commands that you can use in your command prompt.
static new my-site
The static new command will create
a new site in the folder you specify.
static dev
The static dev command starts a development server for the current project folder.
static build
The static build command will build your site into a production-ready masterpiece.
Once you finish your site you can host it on any server, GitHub pages, or even deploy through Laravel Forge.
The post DevDojo Static - NodeJS Site Generator appeared first on Laravel News.
Join the Laravel Newsletter to get Laravel articles like this directly in your inbox.