<div dir="ltr">If all you're looking for is a javascript-based in-browser templating system, then handlebars is a fine choice. I'm not certain on how complex status.html/status.js is, however if you expect it to grow to something more like an application then perhaps looking at angular as a full application framework might help you avoid both this growing pain and future ones (alternatives: Ember, backbone, etc). <div>
<br></div><div>Quick warning though, a lot of the javascript community out there uses tooling that is built on top of Node.js, for which current official packages for Centos/Ubuntu don't exist, and therefore infra won't support it for openstack. Storyboard is able to get around this because it's not actually part of openstack proper, but you might be forced to manage your code manually. That's not a deal breaker in my opinion - it's just more tedious (though I think it might be less tedious than what you're doing right now).</div>
<div><br></div><div>Michael<br><div><div><br></div></div></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Sun, Jan 12, 2014 at 5:21 PM, Monty Taylor <span dir="ltr"><<a href="mailto:mordred@inaugust.com" target="_blank">mordred@inaugust.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">On 01/11/2014 09:56 AM, Sean Dague wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
As someone that's done a decent amount of hacking on<br>
status.html/status.js, I think we're getting to a level of complexity on<br>
our JS status pages that we should probably stop doing this all inline<br>
(probably should have stopped a while ago).<br>
<br>
I'd like to propose that we pick some javascript templating framework,<br>
and start incrementally porting bits over there over time.<br>
</blockquote>
<br></div>
Yes. I believe we're at that point. I've also been learning about js dev and build toolchains, such as grunt, and I've been thinking that status.js might want to be in its own repo.<div class="im"><br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
My current thought is - <a href="http://handlebarsjs.com/" target="_blank">http://handlebarsjs.com/</a> - mostly because it's<br>
only a template library, won't cause us to do a complete rewrite, and we<br>
can move it in in parts. Other opinions are welcome.<br>
</blockquote>
<br></div>
storyboard and horizon are both doing things with angular.<div class="im"><br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
But if we get an ACK on some approach, we can then start phasing it in,<br>
vs. the current state of the art which is way too much string append.<br>
</blockquote>
<br></div>
Michael - any thoughts?<br>
</blockquote></div><br></div>