This package has been deprecated

Author message:

Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

zades-html-templates
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

Zade's HTML templates

These are some useful HTML templates, that come with CSS included. None of them use any JavaScript.

Some templates come with a JavaScript function to generate the HTML server-side based on some inputs. You can use them by installing the package with npm.

pnpm install zades-html-templates
import { generateDirectoryList } from "zades-html-templates";
const myPage = generateDirectoryList(
	[
		{ name: "root", url: "/" },
		{ name: "dir1", url: "/dir1/" },
		{ name: "dir2", url: "/dir1/dir2/" },
		{ name: "currentdir" },
	],
	[
		{
			name: "my folder",
			folder: true,
			url: "/dir1/dir2/currentdir/myfolder/",
		},
		{
			name: "file.txt",
			folder: false,
			url: "/dir1/dir2/currentdir/file.txt",
		},
		{
			name: "image.png",
			folder: false,
			url: "/dir1/dir2/currentdir/image.png",
		},
		{
			name: "video.mp4",
			folder: false,
			url: "/dir1/dir2/currentdir/video.mp4",
		},
		{
			name: "audio.mp3",
			folder: false,
			url: "/dir1/dir2/currentdir/audio.mp3",
		},
	]
);
console.log(myPage);

License

You can use these anywhere for anything, as long as you keep the HTML comment that credits the template to me.

Readme

Keywords

none

Package Sidebar

Install

npm i zades-html-templates

Weekly Downloads

1

Version

1.0.1

License

SEE LICENSE IN readme.md

Unpacked Size

60.4 kB

Total Files

6

Last publish

Collaborators

  • zadeviggers