mrmiguu / coco

Golang WebAssembly Framework
MIT License
110 stars 4 forks source link

running outside the browser in a cli #15

Open ghost opened 5 years ago

ghost commented 5 years ago

Really cool approach here.

wondering if the abstraction allows running this on a server ?

Then i can use the same code for front end as for backend stuff like:

  1. Making reports (html to PDF)
  2. Making emails. THink mail merge.
  3. Maybe even pre rendering web pages.
mrmiguu commented 5 years ago

This serves 2 purposes:

  1. Efficient DOM manipulation.
  2. Elegantly design HTML components using Go.

Working outside the browser wouldn’t need efficient DOM manipulation. So you’d just be getting the abstraction around Go’s template/html package. That could work for sure.