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
Transcript
21 slides
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.
More Decks by d2forum
See All by d2forum
TMS的PHP特性
d2forum
0
1.7k
Leap Motion体感实战
d2forum
0
1.3k
跨终端产品实践
d2forum
12
2k
Touching Future—s01-e01
d2forum
2
1k
KissyCake
d2forum
3
890
贡献标准.s01.e02
d2forum
3
1.4k
一淘响应式设计实践
d2forum
10
1.1k
响应式web设计与实现介绍
d2forum
8
920
定制版设计开发vs响应式设计开发
d2forum
0
290
Featured
See All Featured
Building a A Zero-Code AI SEO Workflow
portentint
PRO
0
850
Tips & Tricks on How to Get Your First Job In Tech
honzajavorek
1
850
The SEO identity crisis: Don't let AI make you average
varn
0
630
Code Review Best Practice
trishagee
74
20k
VelocityConf: Rendering Performance Case Studies
addyosmani
331
25k
Joys of Absence: A Defence of Solitary Play
codingconduct
1
590
Speed Design
sergeychernyshev
33
2.3k
RailsConf & Balkan Ruby 2019: The Past, Present, and Future of Rails at GitHub
eileencodes
141
35k
Getting science done with accelerated Python computing platforms
jacobtomlinson
2
590
Reality Check: Gamification 10 Years Later
codingconduct
0
2.4k
GitHub's CSS Performance
jonrohan
1033
470k
How to Get Subject Matter Experts Bought In and Actively Contributing to SEO & PR Initiatives.
livdayseo
1
250