dongyuan2652 2012-04-14 02:12
浏览 55
已采纳

将动态变量插入HTML模板... PHP? ASP? ColdFusion的? MySQL的?

I have looked on this site, googled, and even searched adobe developer central, without luck. As such, I think I might not know the correct terminology to search for, as my question is pretty straight-forward. Thus, if the title was misleading I apologize.

I'd like to learn how to create an HTML template which will then insert variables as needed, specifically, the names of cities and states (for a franchise), where it is appropriate.

[Self-edited after realizing my initial post was way too broad]

How to do this, or perhaps more importantly the terminology I should use in queries so I find relevant information, would be awesome...

On a related note, are all the dynamic scripting languages compatible with all the database technologies (the only book I read on it dealt with PHP and MySQL)?

Thanks everybody.

  • 写回答

1条回答 默认 最新

  • dongli2000 2012-04-14 02:37
    关注

    The "new hotness" in the interwebs is client-side templating (eg in the browser via JavaScript), & either have your data in the HTML or JavaScript & hiddent/unhidden as needed, OR use AJAX/JSON/XML to get new data from the server dynamically.

    Linkedin switched to client-side templating: http://engineering.linkedin.com/frontend/client-side-templating-throwdown-mustache-handlebars-dustjs-and-more

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 如何在scanpy上做差异基因和通路富集?
  • ¥20 关于#硬件工程#的问题,请各位专家解答!
  • ¥15 关于#matlab#的问题:期望的系统闭环传递函数为G(s)=wn^2/s^2+2¢wn+wn^2阻尼系数¢=0.707,使系统具有较小的超调量
  • ¥15 FLUENT如何实现在堆积颗粒的上表面加载高斯热源
  • ¥30 截图中的mathematics程序转换成matlab
  • ¥15 动力学代码报错,维度不匹配
  • ¥15 Power query添加列问题
  • ¥50 Kubernetes&Fission&Eleasticsearch
  • ¥15 報錯:Person is not mapped,如何解決?
  • ¥15 c++头文件不能识别CDialog