<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't see anything on beegos site about it supporting single page applications. I initially tried to use iris but I can'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'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's all what you can make happen in the browser.</p></pre>justinisrael: <pre><p>I don't use beego, but I don't see why you couldn'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 "/". Then your front end would make calls to other end points from that same single page, such as "/api/..." </p></pre>
这是一个分享于 的资源,其中的信息可能已经有所发展或是发生改变。
入群交流(和以上内容无关):加入Go大咖交流群,或添加微信:liuxiaoyan-s 备注:入群;或加QQ群:692541889
- 请尽量让自己的回复能够对别人有帮助
- 支持 Markdown 格式, **粗体**、~~删除线~~、
`单行代码`
- 支持 @ 本站用户;支持表情(输入 : 提示),见 Emoji cheat sheet
- 图片支持拖拽、截图粘贴等方式上传