https://github.com/stringmanolo/fwl
FWL is a simple "language" (javascript functions) designed to build webpages and documents in html, markdown and bbcode...
https://github.com/stringmanolo/fwl
Last synced: 5 months ago
JSON representation
FWL is a simple "language" (javascript functions) designed to build webpages and documents in html, markdown and bbcode...
- Host: GitHub
- URL: https://github.com/stringmanolo/fwl
- Owner: StringManolo
- Created: 2021-05-28T03:12:58.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2021-05-31T09:58:01.000Z (over 4 years ago)
- Last Synced: 2025-02-07T17:45:02.968Z (12 months ago)
- Language: JavaScript
- Size: 42 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# FWL (Function Web Language)
### FWL is a simple "language" designed to build webpages and documents in html, markdown, bbcode...
## Write once, and generate documents in multiple formats
[Developed by StringManolo](https://github.com/stringmanolo)

All markdown features like
**bold**
_italic_
underline
are available
```javascript
//This is my javascript code:
const number = 10;
alert(number);
/* Hope you like */
```
- variables
- predefined css
- language specific functions
- ...
---
1. simple
2. fast
3. portable
---
> fwl is easy
>
> fwl is fast
---
### How to use
1. Download the fwl.mjs module and import it in the file where you're going to write the document and bind it to global object
2. In case of node call fwl(global)
3. If you use a browser call fwl(window)
4. Set the document type to print
5. Call create method and inside braces use the functions you need to generate the code.
```javascript
import fwl from "./fwl.mjs";
fwl(global);
documentType = "bbcode"; //"markdown" "html"
```
This document is generated using node index.fwl.mjs, use it as an example/reference.
Example of a table:
| number | in text |
| --- | --- |
| 1 | one |
| 2 | two |
© 2021