www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - Diet template is crush

reply Suliman <evermind live.ru> writes:
I can't understand why follow code is crushing:

string error = "503 Server error!";
int error_code = 503;
res.render!("error.dt", error, error_code);

on res string (last in code above) I am getting error:
CoreTaskFiber was terminated unexpectedly: Access Violation

error.dt http://paste.code123.org/91ea2dc1-7396

If delete part:

div.errorPageImg
	- if (error_code == 404)
		img(src='img/error_404.png')
	- else
		img(src='img/error_503.png')

All work fine. It's seems that something wrong with args `error, 
error_code`.
Jun 28 2017
parent Suliman <evermind live.ru> writes:
It's look like issue in another part of code...
Jun 28 2017