<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>${ViewData["Title"]}</title>
<link href="/Content/css/site.css" rel="stylesheet" />
</head>
<body>
<h1>${ViewData["Title"]}</h1>
<div id="container">
<p>Hello world!</p>
</div>
</body>
</html>
static String applyViewData(String html, Map ViewData) {
// apply interpolation here
}
Is this at all possible at the moment? My searching of the APIs indicate that it isn't.
-Tristan.
--
Consider asking HOWTO questions at Stack Overflow: http://stackoverflow.com/tags/dart
--
I think everyone so far is missing a key point of Tristan's question: it appears that his strings are not known at compile time, so they really do need to be parsed.
Justin
I think everyone so far is missing a key point of Tristan's question: it appears that his strings are not known at compile time, so they really do need to be parsed.