User Tools

Site Tools


harlowe:live

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
harlowe:live [2017/06/19 01:39]
l created
harlowe:live [2019/04/16 03:05]
l
Line 26: Line 26:
 === Details: === === Details: ===
  
-Live hooks will continue to re-render themselves until they encounter and print a [[harlowe:​stop|(stop:​)]] macro.+Live hooks will continue to re-render themselves until they encounter and print a [[harlowe:​stop|(stop:​)]] macro. ​[[harlowe:​stop|(stop:​)]] should be used whenever you don't need to keep the hook "​live",​ to save on processing and passage repainting (which can interfere with clicking, selecting text, and other interactions). 
 + 
 +If you want to just display a hook once a certain thing happens (that is, when the condition in an [[harlowe:​if|(if:​)]] macro becomes true) and then [[harlowe:​stop|(stop:​)]],​ then the [[harlowe:​event|(event:​)]] macro may be shorter and easier to use for this. 
 + 
 +Currently, you **cannot** attach (live:) to a [[harlowe:​command|command]] (such as in ''​%%(live:​2s)(link-goto:"?"​)%%''​). You have to wrap the command in a hook (such as ''​%%(live:​2s)[(link-goto:"?"​)]%%''​). 
 + 
 +=== See also: === 
 + 
 +[[harlowe:​event|(event:​)]]
harlowe/live.txt · Last modified: 2019/04/16 03:05 by l