doctype html html head script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.0/jquery.min.js" script src="js/animatedtablesorter/tsort.min.js" link rel="stylesheet" href="js/animatedtablesorter/style.css" type="text/css" body javascript: $(document).ready(function(){$('table.tableSorter').tableSort();}); table border=1 class="tableSorter" tr th ID th Thumnail 以下略 scriptへのリンク自体はimgを埋め込む時と同じ感じ。 scr
![Slimのテンプレートにjavascriptを組み込む - Qiita](https://cdn-ak-scissors.b.st-hatena.com/image/square/26a7cbe50b7c56950bdcab2e1ff7975fe4da16c5/height=288;version=1;width=512/https%3A%2F%2Fqiita-user-contents.imgix.net%2Fhttps%253A%252F%252Fcdn.qiita.com%252Fassets%252Fpublic%252Farticle-ogp-background-412672c5f0600ab9a64263b751f1bc81.png%3Fixlib%3Drb-4.0.0%26w%3D1200%26mark64%3DaHR0cHM6Ly9xaWl0YS11c2VyLWNvbnRlbnRzLmltZ2l4Lm5ldC9-dGV4dD9peGxpYj1yYi00LjAuMCZ3PTk3MiZoPTM3OCZ0eHQ9U2xpbSVFMyU4MSVBRSVFMyU4MyU4NiVFMyU4MyVCMyVFMyU4MyU5NyVFMyU4MyVBQyVFMyU4MyVCQyVFMyU4MyU4OCVFMyU4MSVBQmphdmFzY3JpcHQlRTMlODIlOTIlRTclQjUlODQlRTMlODElQkYlRTglQkUlQkMlRTMlODIlODAmdHh0LWFsaWduPWxlZnQlMkN0b3AmdHh0LWNvbG9yPSUyMzFFMjEyMSZ0eHQtZm9udD1IaXJhZ2lubyUyMFNhbnMlMjBXNiZ0eHQtc2l6ZT01NiZzPWY5YWQwMzIwMGJjZmMzNzYwNDM1NjMxOTEzNTk5MmIx%26mark-x%3D142%26mark-y%3D57%26blend64%3DaHR0cHM6Ly9xaWl0YS11c2VyLWNvbnRlbnRzLmltZ2l4Lm5ldC9-dGV4dD9peGxpYj1yYi00LjAuMCZoPTc2Jnc9NzcwJnR4dD0lNDBZT1VHX1hYJnR4dC1jb2xvcj0lMjMxRTIxMjEmdHh0LWZvbnQ9SGlyYWdpbm8lMjBTYW5zJTIwVzYmdHh0LXNpemU9MzYmdHh0LWFsaWduPWxlZnQlMkN0b3Amcz0yYmY1ZDczMzUzYzMwOWJiZDAxZTRkYWY5NDVmYzI3Zg%26blend-x%3D142%26blend-y%3D486%26blend-mode%3Dnormal%26s%3D30d9e550c3eebfb87e6e41132c964edc)