Font Size: a A A

An Approach To Achieve Effective Model-View Separation In Template Engine

Posted on:2011-09-03Degree:MasterType:Thesis
Country:ChinaCandidate:J M WangFull Text:PDF
GTID:2178360308463609Subject:Computer application technology
Abstract/Summary:PDF Full Text Request
Template technology is more and more widely used in Web Engineering andModel-driven Engineering. Large-scale web projects often require a high degree of scalabilityand a flexible layout. The template engine is just born for this purpose. Several work[7][12][17] have tried to enforce strict isolation between the model and view in templateengine. However, these studies did not properly isolate the presentation logic and businesslogic in template engine.This paper analyzes Terence's strict model and view approach and FJ García1 doublemodel approach and their shortcomings. Then, the paper clears the presentation logic notationin template engine, and proposes a presentation-logic data model approach to enforce thestrict separation between the model and view in template engine. After that, this paperpresents an implementation of this approach in a template engine called ScriptMark templateengine, and describes in detail the overall design and detail design of the ScriptMark templateengine. Finally,this paper compare ScriptMark template engine with other popular templateengine, and analyzes its advantages and problems.This paper is mainly composed of three parts:The first part introduces the research status and research background of the templateengine. Then, analyze two approaches which proposed separately by Terence and FJ García1and points out the deficiencies of their work.The second part proposes a presentation-logic data model approach which enforces astrict separation of view and model. Then, this part describes the ScriptMark template enginewhich implements the presentation-logic data model.The third part designs and implements the ScriptMark template engine, then compare itwith other popular template engine.
Keywords/Search Tags:Template Engine, Graphic Designer, Presentation Logic
PDF Full Text Request
Related items