Skip to content
  • Leon Arnott's avatar
    Fixed the (replace:), (append:) and (prepend:) macros to now consistently no... · 39dc7cdb8cfc
    Leon Arnott authored
    Fixed the (replace:), (append:) and (prepend:) macros to now consistently no longer target any hooks or text that haven't been rendered yet.
    
    While I hadn't originally intended this restriction to exist when designing these macros, I've found it's necessary to obviate complicated implementation issues (such as whether replacing unrendered hooks should permit their replaced code to run before it's replaced, whether (hook:) attached unrendered hooks can be targeted, and more), as well as unpleasant edge-case behaviour (such as what two (replace:) attached hooks targeting each other would do). This solution, at least, can be reasoned about in the same manner as (set:).
    39dc7cdb8cfc