notepad-calculator
notepad-calculator copied to clipboard
String template support
This adds the ability to use string templates to generate text incorporating variables and calculations
The string templates are quoted - either singly on an individual line, or with triple quotes over multiple lines
The mustache template syntax is used (basically just {{expression}}
; the more advanced functions like sections aren't relevant)
mathjs expressions are supported within the template expressions.
Not sure if this would be of interest, or if you think this syntax the best I've found it useful with calculating things and then generating messages explaining them (I also adjusted the styling to be able to produce wider output)
Thanks! I like the idea!
I'm not working on this repo at the moment, so I won't merge it right now. But will leave it here for others to see and in case I return to it in future.
Sadly notepadcalculator.com is giving a 502 Bad Gateway this morning ... not sure where to report this?
Very sorry about that. It's up and running again now!
I'm not sure what the root cause of this was, so if you notice this happening again please let me know!