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

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...

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)
![example image](https://github.com/favicon.ico)

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