How To Dynamic Web Rendering?

Jacob Carlborg doob at me.com
Tue May 17 02:15:52 PDT 2011


On 2011-05-17 10:11, Nick Sabalausky wrote:
> "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.

Ok I see.

-- 
/Jacob Carlborg


More information about the Digitalmars-d-learn mailing list