top-think / think-angular Goto Github PK
View Code? Open in Web Editor NEWthink-angular模板引擎
think-angular模板引擎
{$var} 未定义变量会报错,希望在模板引擎内做 isset 判断,编译成:
if( isset($var) ){ ... }
这就省得在模板里写大量的 if 判断。
此外,本引擎是否支持双向绑定?
th5使用这个这个模版引擎时,无法使用demo中的扩展(例如:dump),请帮忙完善此功能,或者说有什么其他的解决方案?,
if (file_exists($tpl_file)) {
$this->tpl_file = $tpl_file;
return file_get_contents($tpl_file);
}
file_exists 检测到一个目录,然后下面用 file_get_contents 读取时报错!
使用助手函数的一些问题
使用angular时,在控制器使用助手函数view()渲染模板时的问题;
view() 可以渲染
view('Index/index') 可以渲染
view('index') 无法渲染
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.