是否可以在非spa应用程序中使用Aurelia? [英] Is it possible to use Aurelia in a non-spa application?

查看:73
本文介绍了是否可以在非spa应用程序中使用Aurelia?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

最近,我一直在研究不同的框架和库,以寻找真正适合我需要的东西.

Recently I've been playing around with different frameworks and libraries, looking for something that really suits my needs.

您知道,我的工作主要涉及创建asp.net mvc应用程序,并且对于大多数使用Razor的应用程序来说,仅需一点点jQuery就足够了.但是在某些情况下,只有几个页面,每个应用程序很少超过一两个页面,我真的需要一些额外的东西来帮助我避免陷入一堆jQuery代码中.

You see, my job mainly involves creating asp.net mvc applications and for most of them using Razor and a little bit of jQuery is enough. But in certain cases and only for a few pages,which are rarely more than one or two per app, I really need something extra that helps me avoid getting entangled in a bunch of jQuery code.

正如我提到的,我尝试了几种替代方法,其中最喜欢的一种是Aurelia,因为它的简单性和它包含标准的事实,但是我越深入框架,我就越喜欢认为这可能不是我要找的东西,因为它似乎更适合完整的水疗应用,而我需要的是:

As I mentioned, I tried a couple of alternatives and from them, the one I liked the most is Aurelia, because of its simplicity and the fact that it embraces standards, BUT the more I dive into the framework, the more I think that it might not be what I'm looking for,as it seems more suitable for full spa applications and what I need is:

  • 可以帮助我减少DOM操作量的事物
  • 高效的模板引擎

我知道Aurelia可以提供更多功能,但是我不想要/不需要SPA,我只需要在某些特定页面而不是整个应用程序中使用这些功能.

I know that Aurelia provides that and much more, but I don't want/need a SPA, I need those functionalities ONLY in some specific pages and not the whole application.

Aurelia可以帮助我实现这一目标吗?如果可以,怎么办?

Can Aurelia help me achieve this? If so, how?

推荐答案

当然,Aurelia可以帮助您实现这一目标.您只是不会使用某些功能,例如在Aurelia创建的页面上进行路由.

Sure, Aurelia can help you achieve that. You just won't use certain features like routing in on the pages you create with Aurelia.

话虽这么说,这并不是jQuery的替代品,但现代" JS框架都不是.而且您最终将花时间学习最终选择的任何一个.

That being said, it isn't a drop in replacement for jQuery, but none of the "modern" JS frameworks really are. And you're going to end up spending time learning whichever one you end up choosing.

检查aurelia.enhance功能,可能正是您要寻找的功能!

Check out the aurelia.enhance functionality, it might be just what you're looking for!

这篇关于是否可以在非spa应用程序中使用Aurelia?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆