Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions src/coconut/vdom/RenderResult.hx
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ abstract RenderResult(VNode<Node>) to VNode<Node> from VNode<Node> {
@:from static function ofInt(i:Int):RenderResult
return ofText('$i');

@:from static function ofFloat(f:Float):RenderResult
return ofText('$f');

@:from static function ofNode(n:Node):RenderResult
return VNode.embed(n);

Expand Down