Does Beego support single page applications?

xuanbao · · 452 次点击    
这是一个分享于 的资源,其中的信息可能已经有所发展或是发生改变。
<p>I am building a pretty simple personal website and I want to do the whole thing in Go. I have seen some cool Beego builds that seem pretty intuitive but my one hangup is that I didn&#39;t see anything on beegos site about it supporting single page applications. I initially tried to use iris but I can&#39;t make css work with it even though it shows it in the docs. I also saw the weirdness with kateras the maintainer of iris and I don&#39;t want to support that.<br/> Thanks :)</p> <hr/>**评论:**<br/><br/>therealfakemoot: <pre><p>What makes a Single Page Application is mostly the javascript. Javascript on the page sends a request to the server, receives data, and updates the page in-place. Beego seems to support routes and all the standard web server stuff. So the question is, can you design a template and accompanying javascript that will make a Single Page Application?</p> <p>Beego will let you fire off HTTP requests to get data, so it&#39;s all what you can make happen in the browser.</p></pre>justinisrael: <pre><p>I don&#39;t use beego, but I don&#39;t see why you couldn&#39;t achieve this with pretty much any of the web frameworks. It consists of you choosing some way to do the front end, which would be served at a given route such as &#34;/&#34;. Then your front end would make calls to other end points from that same single page, such as &#34;/api/...&#34; </p></pre>

入群交流(和以上内容无关):加入Go大咖交流群,或添加微信:liuxiaoyan-s 备注:入群;或加QQ群:692541889

452 次点击  
加入收藏 微博
暂无回复
添加一条新回复 (您需要 登录 后才能回复 没有账号 ?)
  • 请尽量让自己的回复能够对别人有帮助
  • 支持 Markdown 格式, **粗体**、~~删除线~~、`单行代码`
  • 支持 @ 本站用户;支持表情(输入 : 提示),见 Emoji cheat sheet
  • 图片支持拖拽、截图粘贴等方式上传