如何将Meteor.js作为仅前端框架与我的Django应用程序集成 [英] How To Integrate Meteor.js As A Front End Only Framework With My Django App

查看:63
本文介绍了如何将Meteor.js作为仅前端框架与我的Django应用程序集成的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要在我的Django应用程序中将meteor.js用作前端框架.我知道流星是一个完整的堆栈框架.我如何仅通过Django应用程序将其用作前端框架.我知道,应该使用Angular.js,boneal.js之类的框架.但是我仅需使用meteor.js即可完成练习.谢谢

I need to use the meteor.js as a front end framework in my django app. I know meteor is a full stack framework; How can I use it as a front end framework only with my Django app. I know, Angular.js, backbone.js kind of frameworks should be used for that. But I have to use meteor.js only for completing my exercise. Thanks

推荐答案

您可以将Django应用用作API Rest.在客户端的Meteor App中,您可以使用HTTP.get方法调用API

You can use your Django App As a API Rest. and in the Meteor App in the client side you can call the API with the HTTP.get method

HTTP.get(URL,[callOptions],[asyncCallback])

HTTP.get(url, [callOptions], [asyncCallback])

http://docs.meteor.com/#/full/http_get

流星(烈焰)带有空格键以进行迭代并采取行动:

Meteor (Blaze) Have the space bars for iterate and take desicions:

https://www.meteor.com/blaze

此主题类似于您的问题:

This Topic is similar to your question:

如何使用流星进行API调用

这篇关于如何将Meteor.js作为仅前端框架与我的Django应用程序集成的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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