Skip to content

Commit

Permalink
jusr docs
Browse files Browse the repository at this point in the history
  • Loading branch information
manatlan committed Jul 23, 2023
1 parent 6b6c80e commit 5c6c2b0
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,3 +87,16 @@ See a more advanced example in [examples folder](https://github.com/manatlan/hta
```bash
python3 examples/main.py
```

# htagweb.HtagServer

This is a new beast, which is available in this module, and __it's COMPLETLY different from ALL others htag runners__.
See it like an "htag server", very useful during development phase. In console, type :

```bash
$ python3 -m htagweb
```

It will run a solid http/ws, with all htag/web features, and you can browse htag's apps in an html page.

It's not the official way to expose htag's apps on the web. But I'm currently exploring that (because it's a lot lot simpler ;-)
1 change: 1 addition & 0 deletions htagweb/htagserver.py
Original file line number Diff line number Diff line change
Expand Up @@ -276,6 +276,7 @@ async def _servehtagapp(self,request):
jsparano = ""
jsparano += "\nasync function _read_(x) {return x}\n"
jsparano += "\nasync function _write_(x) {return x}\n"
#TODO: consider https://developer.chrome.com/blog/removing-document-write/
bootstrapHtmlPage="""<!DOCTYPE html>
<html>
<head>
Expand Down

0 comments on commit 5c6c2b0

Please sign in to comment.