Skip to content
Open
Show file tree
Hide file tree
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: 2 additions & 1 deletion src/temple/func_string_gen.d
Original file line number Diff line number Diff line change
Expand Up @@ -420,7 +420,8 @@ string build_function_head(string filter_ident) {
ret ~= `
void __temple_buff_filtered_put(T)(T thing)
{
__temple_context.put(.std.conv.to!string(thing));
import std.conv : to;
__temple_context.put(to!string(thing));
}

/// without filter, render subtemplate with an explicit context (which defaults to null)
Expand Down
3 changes: 2 additions & 1 deletion src/temple/package.d
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ private import
private import std.array : appender, Appender;
private import std.range : isOutputRange;
private import std.typecons : scoped;
private import std.stdio : File;

public {
import temple.temple_context : TempleContext;
Expand Down Expand Up @@ -165,7 +166,7 @@ public:
void render(void function(string) sink, TempleContext tc = null) const {
auto oc = TempleOutputStream(sink);
this.render(oc, tc); }
void render(ref std.stdio.File f, TempleContext tc = null) const {
void render(ref File f, TempleContext tc = null) const {
auto oc = TempleOutputStream(f);
this.render(oc, tc);
}
Expand Down