https://github.com/therayvoice/monsterhtml
A compiler for html+css+markdown+latex. Monster HTML is a very Powerfull HTML framework, formerly known as PHTML. It is a templating markup framework which allows writting code within HTML to run at compile-time and modify the final product. The file use the '.phtml' extention, and are compiled to a '.html' file.
https://github.com/therayvoice/monsterhtml
bootstrap css hacktoberfest html javascript nodejs
Last synced: 3 months ago
JSON representation
A compiler for html+css+markdown+latex. Monster HTML is a very Powerfull HTML framework, formerly known as PHTML. It is a templating markup framework which allows writting code within HTML to run at compile-time and modify the final product. The file use the '.phtml' extention, and are compiled to a '.html' file.
- Host: GitHub
- URL: https://github.com/therayvoice/monsterhtml
- Owner: therayvoice
- License: mit
- Created: 2021-10-08T04:24:13.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2021-10-26T03:49:19.000Z (over 4 years ago)
- Last Synced: 2025-09-21T23:48:11.815Z (10 months ago)
- Topics: bootstrap, css, hacktoberfest, html, javascript, nodejs
- Language: JavaScript
- Homepage:
- Size: 55.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Monster HTML
A compiler for Monster HTML, formerly known as PHTML aka Powerfull-HTML and informally known as HTMLX (as in Xtreme) is a templating markup framework which allows writting code within HTML to run at compile-time and modify the final product. In Many ways Monster HTML a very advanced HTML.
The file use the '.phtml' extention, and are compiled to a '.html' file.
# Installation
To install the Monster HTML Compiler use:
`npm i monsterhtml -g`
Or install it as a development dependency.
# Usage
To compile a `.phtml` file to a `.html` file use:
`monsterhtml -f /path/to/file.phtml`
# Features
1. Built in engine to run code at compile time.
2. Smaller end files then other industry-standard (outdated and bloated) frameworks.
3. Built in CSS like styling engine to run styling code at compile time.
4. Bootstrap like UI/UX library with a large collection of objects.
5. Suggest more features by contacting directly: rayvanet@gmail.com
# Monster HTML Syntax
```html
{{ project.title }}
{{ project.title }}
<
© Ray Voice
```
## Include (Attribute)
All elements have a `include` attribute which works like a `href` attribute. This can be used to import the `innerHTML`, `attributes`, etc. for that element from an external file. If the name of the element does not match the name of the included element then the name of the included element takes precedence. Similarly, the content of the included element will completely overwrite the content of the existing element.
If you have configured an element's external file url in the `monsterHTML.config` file then you can just use `include=true` to that element import it.
## Body
Defaults for Monster HTML
```
position:relative;
```
## Header
The header element works just like the regular HTML5 header, but has a few extra styling attributes.
### Options
```
sticky=true (default)
linear-gradient-color1="#00000000" (default)
linear-gradient-color2="#eeeeeeee"
gradient-direction="top-down" (default)
chevron-icon-right=false (default)
home-icon-right=true (default)
```
### brand-logo options
```
sticky=true (default)
href="./brand-logo.svg" (default)
```
### website-name
## Leftside
## Rightside
## Main
All the unique page content goes inside the `` n, site logos, and search forms.
Note: There must not be more than one element in a document. The element must NOT be a descendant of an , , , , or element.
## Footer
The header element works just like the regular HTML5 header, but has a few extra styling attributes.
### CSS
```
left: 0;
bottom: 0;
width: 100%;
text-align: center;
```
### Options
```
sticky=false (default)
linear-gradient-color1="#00000000"
linear-gradient-color2="#eeeeeeee" (default)
gradient-direction="top-down" (default)
```
## Article
## Import Directives
## Variables
MonsterHTML variables are declared in the 'monsterHTML.config' file. Only strings and numbers are supported yet! To access them use {{ project.variableName }}. Only camelCasing is supported.
## Conditionals
## Loops
# License
MIT License
Copyright (c) 2021 Ray Voice
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.