How To Dynamic Web Rendering?

Nick Sabalausky a at a.a
Tue May 17 01:16:00 PDT 2011


"Nick Sabalausky" <a at a.a> wrote in message 
news:iqtarl$229l$1 at digitalmars.com...
> "Jacob Carlborg" <doob at me.com> wrote in message 
> news:iqt6kb$1nd1$1 at digitalmars.com...
>> On 2011-05-16 15:43, Adam D. Ruppe wrote:
>>>> Instead you move the view layer into the model or controller
>>>> layer. How's that any different?
>>>
>>> Is that really what's happening? Any template has variables made
>>> available to it from the model. I'm just making them available
>>> at a higher level (pre-wrapped in semantic tags and grouped
>>> together).
>>>
>>> The actual layout and styling, sometimes even data formatting - the
>>> stuff I think of as the view - is still done entirely in the
>>> separate html and css files.
>>>
>>> I realize this isn't a perfect argument, but it's still worth it
>>> to me to have those other processing options available.
>>
>> I got the impression that you basically did all HTML with D methods, 
>> maybe I don't understand your work flow.
>>
>
> AIUI:
>
> 1. It starts out as ordinary HTML with no special non-standard tags or 
> anything. But it might use id and class attributes to mean certain things.
>
> 2. In D, that HTML is loaded and parsed into an HTML DOM.
>
> 3. In D, the data is filled into the HTML DOM. Sometimes this might 
> involve a amall amount of adding HTML tags/attributes or other weird 
> tweaking if necessary.
>
> 4. The new HTML DOM is written out as straight HTML.
>
> Basically just like DHTML, except on the server and using D.
>

And AIUI, it can also be thought of as being like an HTML templating engine, 
except instead of working with proprietary tags and text subsitution, it 
works with id/class attributes and an enhanced HTML DOM.





More information about the Digitalmars-d-learn mailing list