Skip to content

Commit

Permalink
Update DOCUMENTATION.md
Browse files Browse the repository at this point in the history
  • Loading branch information
TheMaster1127 authored Jun 20, 2024
1 parent d4d546b commit 733fc05
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions DOCUMENTATION.md
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ Explore the various features offered by the HTH programming language in this sec
20. [Loop, Parse](#loop-parse)
21. [Variables and Arrays](#variablesandarrays)
22. [Run, Reload and ExitApp](#run-reload-and-exitapp)
23. [#Include](#include)
23. [#Include (ONLY in HTH v1)](#include)
24. [Comments](#hth-comments)
25. [runPyCode and runHTML](#runpycode-and-runhtml)
26. [PlaySound](#play-sound)
Expand Down Expand Up @@ -2534,6 +2534,7 @@ This command will terminate the script execution and close the tab or browser wi
[Go back](#features)

---
#### ONLY in HTH v1

The `#Include` directive in HeavenToHell (HTH) allows developers to include external scripts into their main script, enabling modularization and code reuse. This feature is particularly useful for organizing large scripts into smaller, more manageable components, as well as for incorporating libraries or utility functions.

Expand Down Expand Up @@ -2778,6 +2779,7 @@ SoundPlay, Command, Parameter
SoundPlay, Play, https://example.com/audio.mp3
; Play audio from your specified path (to be encoded into a Base64 string inside the .html output)
; (ONLY in HTH v1)
SoundPlay, Play, C:/path/to/your/your.mp3
; Pause audio playback
Expand Down Expand Up @@ -3045,6 +3047,7 @@ Icon, IconSource
Icon, https://example.com/image.png
; Set the website icon from a local file path
; (ONLY in HTH v1)
Icon, C:/path/to/your/your.png
```

Expand Down Expand Up @@ -4718,7 +4721,7 @@ Here's a step-by-step guide to getting started with backend development in HTH u
1. Write your HTH code, making use of the `getDataFromEndpoint()` function to interact with the backend.
2. Run your HTH code.
3. Once executed, you'll find an `index.html` file as output.
4. Locate the `server.py` file generated by HTH if you've used the `getDataFromEndpoint()` function.
4. Locate the `server.py` file generated by HTH if you've used the `getDataFromEndpoint()` function. (ONLY in HTH v1)
5. Ensure Python and Flask are installed on your system.
6. Run the `server.py` file using Python.
7. Your Python backend is now running and ready to handle requests from your HTH frontend.
Expand Down

0 comments on commit 733fc05

Please sign in to comment.