Skip to content

Commit

Permalink
add support for arrays
Browse files Browse the repository at this point in the history
  • Loading branch information
kristoff-it committed Oct 8, 2024
1 parent b684bbe commit 36f37aa
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/template.zig
Original file line number Diff line number Diff line change
Expand Up @@ -1127,6 +1127,7 @@ pub fn SuperTemplate(comptime ScriptyVM: type, comptime OutWriter: type) type {

switch (result.value) {
.iterator => |i| return i,
.array => |a| return Value.Iterator.fromArray(tpl.arena, a) catch return error.Fatal,
else => {
tpl.reportError(
err_writer,
Expand Down

0 comments on commit 36f37aa

Please sign in to comment.