require '~/daru-view/lib/daru/view'
Install the spreadsheet gem version ~>1.1.1 for using spreadsheet functions. Install the mechanize gem version ~>2.7.5 for using mechanize functions.
true
IRuby.html("<!DOCTYPE html>
<html>
<head>
<script src='http://code.jquery.com/jquery-1.11.3.min.js'></script>
<link href='https://nightly.datatables.net/css/jquery.dataTables.css' rel='stylesheet' type='text/css' />
<script src='https://nightly.datatables.net/js/jquery.dataTables.js'></script>
</head>
<body>
<p>hi</p>
<script>
$(document).ready(function() {
$('#example').DataTable();
} );
</script>
</body>
<table id='example' class='display' style='width:100%'>
<thead>
<tr>
<th>Name</th>
<th>Position</th>
<th>Office</th>
<th>Age</th>
<th>Start date</th>
<th>Salary</th>
</tr>
</thead>
<tbody>
<tr>
<td>Michael Bruce</td>
<td>Javascript Developer</td>
<td>Singapore</td>
<td>29</td>
<td>2011/06/27</td>
<td>$183,000</td>
</tr>
<tr>
<td>Donna Snider</td>
<td>Customer Support</td>
<td>New York</td>
<td>27</td>
<td>2011/01/25</td>
<td>$112,000</td>
</tr>
</tbody>
<tfoot>
<tr>
<th>Name</th>
<th>Position</th>
<th>Office</th>
<th>Age</th>
<th>Start date</th>
<th>Salary</th>
</tr>
</tfoot>
</table>
</html>")
hi
Name | Position | Office | Age | Start date | Salary |
---|---|---|---|---|---|
Michael Bruce | Javascript Developer | Singapore | 29 | 2011/06/27 | $183,000 |
Donna Snider | Customer Support | New York | 27 | 2011/01/25 | $112,000 |
Name | Position | Office | Age | Start date | Salary |