It would probably help if I explained what I am trying to do with
Pure. Basically I am trying to implement a very simple MVC framework
for NodeJS without using any 3rd party "middleware". This would be
very similar to how CakePHP or Symfony are structured in theory.
So when a 'Controller' finishes processing, it would set variables
that would be available for the view. The view file is a static HTML
which would be processed via Pure to embed the view variables in
appropriate places in in the HTML file.
I did realise that everything works if I add explicit directives, but
the problem is that in each controller I need to add these directives
that essentially tells Pure to do exactly what it would have done via
autorender.
While writing a large MVC application, it is cumbersome to have to add
directives to each controller and preferable if the controller
developer does not have to worry about how the variables get embedded
in the view. This is where I was hoping that the autoRender would help
me.
I did try using other JS templates, but they all use their own special
syntax instead of standard HTML, and Pure is the only template that I
came across that works with standard HTML with no other magic. I would
like to know if you plan on supporting autoRender functionality in
future ? I will be glad to help you debug the issues as I come across
if that helps.