diff options
author | bptato <nincsnevem662@gmail.com> | 2024-02-10 03:29:58 +0100 |
---|---|---|
committer | bptato <nincsnevem662@gmail.com> | 2024-02-10 03:29:58 +0100 |
commit | c20fa2b74eadd2e637d32ebd1bf43b8bf6f9e7fa (patch) | |
tree | 690fb8807bae10bfb1513034f97121bc05b91139 /chame/htmlparseriface.nim | |
parent | 785cdc80397dbd6b1c127a7a9bd98159e71b56c9 (diff) | |
download | chawan-c20fa2b74eadd2e637d32ebd1bf43b8bf6f9e7fa.tar.gz |
Update docs
Diffstat (limited to 'chame/htmlparseriface.nim')
-rw-r--r-- | chame/htmlparseriface.nim | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/chame/htmlparseriface.nim b/chame/htmlparseriface.nim index 2b41a586..e5d33c05 100644 --- a/chame/htmlparseriface.nim +++ b/chame/htmlparseriface.nim @@ -3,11 +3,11 @@ when defined(nimdocdummy): ## ## This exists to make implementing the DOMBuilder interface less painful. Two ## categories of hooks exist: - ## 1. Mandatory hooks: these must be implemented using static dispatch as procs. - ## Not implementing any of them will result in a compilation error. - ## 2. Optional hooks: these may be omitted if your DOM does not need them. They - ## are implemented using dynamic dispatch as methods, so we can provide - ## a default implementation (that does nothing). + ## 1. Mandatory hooks: these must be implemented by all users, or Chame will + ## not compile. + ## 2. Optional hooks: these may be omitted if your DOM does not need + ## them. (You do not have to do anything special for this, just don't + ## implement them.) ## ## Usage: ## 1. Put a type clause with your generic types in your DOM builder interface: @@ -38,7 +38,7 @@ when defined(nimdocdummy): ## otherwise you are likely to get strange compilation errors. ## ## ## Optional hooks - ## Following methods are optional hooks; implementations of this interface + ## Following procedures are optional hooks; implementations of this interface ## can choose to leave them out without getting compilation errors. ## ## ```nim |