News

DevDojo Static - NodeJS Site Generator

Published
DevDojo Static - NodeJS Site Generator image

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.

Eric L. Barnes photo

Eric is the creator of Laravel News and has been covering Laravel since 2012.

Filed in

Sponsored

tinkerwell logo
Tinkerwell

Enjoy coding and debugging in an editor designed for fast feedback and quick iterations. It's like a shell for your application – but with multi-line editing, code completion, and more.

Visit Tinkerwell

The latest

View all →
CPX: The Composer Package Executor for PHP image

CPX: The Composer Package Executor for PHP

Read article
Laravel AI SDK Adds Human-in-the-Loop Tool Approval image

Laravel AI SDK Adds Human-in-the-Loop Tool Approval

Read article
Pest 5 Released With Test Impact Analysis, Agent Verification, and Evals image

Pest 5 Released With Test Impact Analysis, Agent Verification, and Evals

Read article
Queue-SQL: Run Mass Deletes and Updates Across Parallel Queue Jobs image

Queue-SQL: Run Mass Deletes and Updates Across Parallel Queue Jobs

Read article
Blade Formatting in Laravel Pint image

Blade Formatting in Laravel Pint

Read article
Inertia DevTools Is Now on the Chrome Web Store image

Inertia DevTools Is Now on the Chrome Web Store

Read article