Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/gobinath-b/html-to-ejs-script


https://github.com/gobinath-b/html-to-ejs-script

Last synced: about 2 months ago
JSON representation

Awesome Lists containing this project

README

        

# HTML to EJS Converter

This Node.js script automates the process of converting HTML files with a .html extension into EJS (Embedded JavaScript) files with a .ejs extension. It helps streamline the transition from static HTML to EJS templates in your project.

## Prerequisites

Before you can use this script, ensure you have the following prerequisites:

- Node.js installed on your computer.

## Usage

1. Clone this repository to your local machine or download the script file directly.

2. Place your HTML files that you want to convert to EJS templates in a directory. You can create a directory called `html_files` and place your HTML files inside it.

3. Open a terminal/command prompt and navigate to the directory containing the script file and your `html_files` directory.

4. Run the script using the following command:

```bash
node script.js