Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
From TSDK To DPL
Search
d2forum
August 07, 2012
170
2
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
From TSDK To DPL
基于TMS的本地模板开发工具
d2forum
August 07, 2012
More Decks by d2forum
See All by d2forum
TMS的PHP特性
d2forum
0
1.6k
Leap Motion体感实战
d2forum
0
1.3k
跨终端产品实践
d2forum
12
2k
Touching Future—s01-e01
d2forum
2
960
KissyCake
d2forum
3
850
贡献标准.s01.e02
d2forum
3
1.4k
一淘响应式设计实践
d2forum
10
1k
响应式web设计与实现介绍
d2forum
8
880
定制版设计开发vs响应式设计开发
d2forum
0
250
Featured
See All Featured
B2B Lead Gen: Tactics, Traps & Triumph
marketingsoph
0
260
We Have a Design System, Now What?
morganepeng
55
8.4k
JavaScript: Past, Present, and Future - NDC Porto 2020
reverentgeek
52
6.1k
The Invisible Side of Design
smashingmag
301
52k
Practical Orchestrator
shlominoach
192
12k
The State of eCommerce SEO: How to Win in Today's Products SERPs - #SEOweek
aleyda
2
12k
Google's AI Overviews - The New Search
badams
0
1.6k
Digital Projects Gone Horribly Wrong (And the UX Pros Who Still Save the Day) - Dean Schuster
uxyall
1
3.2k
Site-Speed That Sticks
csswizardry
13
1.5k
SEO in 2025: How to Prepare for the Future of Search
ipullrank
3
3.9k
We Are The Robots
honzajavorek
0
380
sira's awesome portfolio website redesign presentation
elsirapls
0
440
Transcript
From TSDK To DPL 2012.07.31
About Me 邦彦 http://mangguo.org
什么是 DPL ?
什么是 DPL ? 基于 TMS 的本地模板开发工具 强化模块机制,实现模板(页面) 模块化开发和使用
现状 TMS 模块 ? TSDK 模板包 ?
TMS 模块 外观定制困难 模块 assets 管理混乱 全局 combo 、外联、内联 模块
JS 书写要求高 缺少统一的开发调试环境
TSDK 模板包 外观定制困难 模板无法升级,依赖源代码 模板包粒度大,复用笨拙 简易模块化
DPL 优势 支持 less ,可定制外观皮肤 预知模块使用情况,静态资源按需加载 统一模块脚本初始化 控制器,为性能优化提供先决条件 本地开发调试环境
DPL 优势 模板可以无缝升级 模块为最小颗粒,低耦合,高复用 模块数据可模拟 可扩展性好
工作流程 客户端( DPL ) 开发模块、搭建模板、上传下载 服务端( TMS ) 解析配置、组装代码、生成页面
模板酱紫用 TMS 服务端 TMS 页面 (仅有配置) 上传 本地模板包 私有模块库 TMS
模板 (解包、入 库) 生成 升级(更新 attribute )
header content layout region footer module layout region module region
module module module
模板 2 私有模块库 模块类型 公共模块库 模板 1 私有模块库 模板 N
私有模块库 … 私有模块库
模块引用 模板中的模块引用关系 私有模块库 新建模块 已有模块 拷贝 引用 存储 公共模块库
模块皮肤设置 less 模板 JSON 配置表单
模板搭建 新建或插入 模块 调整 保存配置 ( attribute ) 预览模板 设置模块皮肤
模板 attribute 模板结构配置 布局 区块(坑位) 模块
模板渲染 解析配置 ( attribute ) 渲染布局 渲染模块 模板代码 tms 标签解析
应用模拟数据
模板脚本初始化 模块统一初始化 new S.dpl['module'](box, module) ;
模块控制器、懒加载 p4p,hesper,tbskip…
thx.