Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/tknf/miujs

A Node.js framework for development of fast, simple, lightweight website.
https://github.com/tknf/miujs

framework html javascript nodejs nunjucks typescript website

Last synced: about 1 month ago
JSON representation

A Node.js framework for development of fast, simple, lightweight website.

Awesome Lists containing this project

README

        

# MiuJS Web Framework

A simple and minimal web framework using the JavaScript and Node.js.

Featuring:
- builtin server
- multiple deploy target
- node
- vercel
- netlify
- scoped css
- live reload
- no dependencies in client bundle
- TypeScript support

## Getting Started
```bash
npx create-miu@latest
```

## Minimal example:
### Input
```js
// src/routes/index.js
import { render } from "miujs/node";

export const get = ({ createContent }) => {
const html = createContent({
layout: "default",
sections: [
{ name: "index" }
],
metadata: { title: "homepage" },
data: {
title: "My first website",
content: "Thanks for visiting!"
}
});
return render(html, {
status: 200
});
};
```

```html




{{ metadata.title }}






```

```html

.root:scope {
display: block;
width: 100%;
position: relative;

.title {
margin-top: 0;
font-size: 2.8rem;
}
}



{{ data.title }}



{{ data.description }}



```

## Documentation
Learn more about MiuJS on [our website](https://www.miujs.com).