Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/gobinath-b/html-to-ejs-script
- Owner: Gobinath-B
- Created: 2023-09-06T13:24:50.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-09-06T18:35:48.000Z (over 1 year ago)
- Last Synced: 2023-09-06T21:16:03.021Z (over 1 year ago)
- Language: JavaScript
- Size: 1000 Bytes
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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