Restructure render
This commit is contained in:
parent
9b0c60d42d
commit
16fd5b0b95
18 changed files with 207 additions and 133 deletions
|
@ -5,7 +5,7 @@ const zdt = @import("zdt");
|
|||
const Dimensions = @import("../../Dimensions.zig");
|
||||
const renderer = @import("../../renderer.zig");
|
||||
|
||||
pub const efa = @import("efa.zig");
|
||||
pub const api = @import("../../api/root.zig");
|
||||
|
||||
const template = @import("template/root.zig");
|
||||
|
||||
|
@ -28,7 +28,7 @@ pub const RenderOptions = struct {
|
|||
show_operator: bool,
|
||||
};
|
||||
|
||||
pub fn render(self: *const Self, efa_dm_resp: *const efa.DmResponse, options: RenderOptions) ![]const u8 {
|
||||
pub fn render(self: *const Self, efa_dm_resp: *const api.efa.models.DmResponse, options: RenderOptions) ![]const u8 {
|
||||
const now_local = try options.now.tzConvert(.{ .tz = options.tz });
|
||||
|
||||
var arena = std.heap.ArenaAllocator.init(self.allocator);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue