简体   繁体   English

如何在博客网站中应用实时模板切换

[英]How to apply realtime template switching in blog website

I have a blog app which I develop using Flask framework with Flask-Restless for retrieve data from database.我有一个博客应用程序,我使用Flask 框架Flask-Restless 开发,用于从数据库中检索数据。

I want to implement a realtime template switching client side app for the webpage.我想为网页实现一个实时模板切换客户端应用程序。

So user able to read the blog post their favourable format.因此,用户能够阅读他们喜欢的博客文章格式。

Planning to implement at least 10 types of predefined format, which user able to select and it will switch the format at realtime.计划实现至少10种预定义格式,用户可以选择并实时切换格式。

My question is which is the best javascript library for implement this kind of functionality?我的问题是哪个是实现这种功能的最佳 javascript 库?

Is Angular JS is good option for it? Angular JS 是它的好选择吗?

AngularJS can definitely do this through its routing engine. AngularJS 绝对可以通过它的路由引擎做到这一点。 Whether it is the best way to implement this?这是否是实现这一点的最佳方式? It is a perfectly fine choice, and if there isn't another major framework you are familiar with then I would go the Angular route.这是一个非常好的选择,如果没有您熟悉的另一个主要框架,那么我会选择 Angular 路线。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM