`
Jan
  • 浏览: 163293 次
  • 性别: Icon_minigender_1
  • 来自: Hangzhou
文章分类
社区版块
存档分类
最新评论

Running ruby in your browser

    博客分类:
  • ruby
阅读更多
有意思的创意,看这里

也就是说,你可以像写js一样写ruby script:
<script type="text/ruby">
document.ready do |dom|
dom["table tr"] <<"<td>test</td>"
end
</script>
原理是把JRuby/XRuby当作applet来用,用这个applet来解析ruby脚本。JRuby真是个好东西啊,真是期待。

不过我没有在他的网页上试成功。。。初步揣测可能是由于jruby那个包有点大,网速慢,所以在Ruby Output那块一直显示Loading......
分享到:
评论

相关推荐

    Running Scala in the Browser.pdf

    在《Running Scala in the Browser》这篇演讲稿中,作者Wolfgang Kühn介绍了如何在浏览器环境中利用Scala编写富客户端应用的方法。该演讲是在2010年的Scala Days大会上进行的,重点讨论了如何将Scala代码编译成...

    Ubuntu 出现 The system is running in low-graphics mode 的解决办法.docx

    在Ubuntu系统中,当用户遇到"The system is running in low-graphics mode"的错误提示时,意味着系统无法正确加载图形界面,通常与显卡驱动程序有关。这个问题可能是由于多种原因引起的,比如驱动程序损坏、更新失败...

    Ruby Under a Microscope

    pressing enter, and your Ruby script is running. However, Ruby’s syntax is deceptively simple; in fact, Ruby employs sophisticated ideas from complex languages like Lisp and Smalltalk. On top of this...

    关于Jedis连接Linux上的redis出现 DENIED Redis is running in protected mode问题的解决方案

    ### 关于Jedis连接Linux上的Redis出现DENIED Redis is running in protected mode问题的解决方案 #### 一、问题背景 在尝试使用Jedis客户端通过网络连接Linux服务器上的Redis时,可能会遇到一个常见的错误提示:...

    Unity WebGL本地运行测试的 web配置文件 webconfig

    It seems your browser does not support running Unity WebGL content from file:// urls. Please upload it to an http server, or try a different browser. 无法打开本地链接,需把网页发布成可打开的网址放在...

    Ruby on Rails_ Up and Running

    RUBY的经典之作,对其在RAILS下开发写得很详细

    Jenkins 2 Up and Running Evolve Your Deployment Pipeline for Next mobi

    Jenkins 2 Up and Running Evolve Your Deployment Pipeline for Next Generation Automation 英文mobi 本资源转载自网络,如有侵权,请联系上传者或csdn删除 查看此书详细信息请在美国亚马逊官网搜索此书

    Jenkins 2 Up and Running Evolve Your Deployment Pipeline for Next azw3

    Jenkins 2 Up and Running Evolve Your Deployment Pipeline for Next Generation Automation 英文azw3 本资源转载自网络,如有侵权,请联系上传者或csdn删除 查看此书详细信息请在美国亚马逊官网搜索此书

    Docker: Up & Running: Shipping Reliable Containers in Production 2nd Edition

    you’ll learn how to use Docker to package your applications with all of their dependencies and then test, ship, scale, and support your containers in production. This edition includes significant ...

    Automatic Operation of Browser using Selenium and Ruby 1st Edition

    Practice is necessary but it is not desirable to use the real website running in the internet for practice. Therefore, in this book we will prepare two sites, demo site and WordPress site for ...

    Jenkins 2 Up and Running Evolve Your Deployment Pipeline for Next epub

    Jenkins 2 Up and Running Evolve Your Deployment Pipeline for Next Generation Automation 英文epub 本资源转载自网络,如有侵权,请联系上传者或csdn删除 查看此书详细信息请在美国亚马逊官网搜索此书

    Ruby on Rails: Up and Running

    《Ruby on Rails: Up and Running》是一本针对初学者和有经验开发者的技术书籍,它深入浅出地介绍了如何使用Ruby on Rails框架构建Web应用程序。Ruby on Rails(简称Rails)是基于Ruby编程语言的一个开源Web应用框架...

    Ruby Pocket Reference

    Whether you are using Ruby for web development through the Rails framework or other applications, this pocket reference aims to be your go-to guide. **Key Knowledge Points:** #### Running Ruby - *...

    Jenkins 2 Up and Running Evolve Your Deployment Pipeline for Next 无水印转化版pdf

    Jenkins 2 Up and Running Evolve Your Deployment Pipeline for Next Generation Automation 英文无水印转化版pdf pdf所有页面使用FoxitReader、PDF-XChangeViewer、SumatraPDF和Firefox测试都可以打开 本资源...

    ruby.on.rails.up.and.running

    《Ruby on Rails Up and Running》是一本专注于介绍Ruby on Rails框架的书籍,旨在帮助开发者快速上手并深入了解这个强大的Web开发平台。Ruby是一种面向对象的编程语言,以其简洁、优雅的语法著称,而Rails是基于...

    ruby selenium-client-1.2.18.gem

    A new Ruby folder is created in your C drive Ruby192 7. Download the selenium-client to c:\Ruby192\bin. The version I have downloaded was selenium-client 1.2.18 8. Set the CLASSPATH C:\Ruby192\bin –...

    Ruby.Pocket.Reference

    This overview provides a detailed look into the key concepts and features of the Ruby programming language covered in the "Ruby Pocket Reference." It serves as a comprehensive guide for both beginners...

    Jenkins 2--Up and Running

    Jenkins 2: Up and Running Evolve Your Deployment Pipeline for Next Generation Automation Design, implement, and execute continuous delivery pipelines with a level of flexibility, control, and ease of...

    Scratch-GUI-develop

    To open the current build in your browser on Github Pages: https://scratchfoundation.github.io/scratch-gui/ Installation This requires you to have Git and Node.js installed. In your own node ...

Global site tag (gtag.js) - Google Analytics