{"id":15809182,"url":"https://github.com/daaain/guard-steering-examples","last_synced_at":"2025-03-31T23:44:33.787Z","repository":{"id":4095253,"uuid":"5203282","full_name":"daaain/guard-steering-examples","owner":"daaain","description":"A sample repository to demonstrate Guard-Steering and Steering gems on some Handlebars templates and partials.","archived":false,"fork":false,"pushed_at":"2012-09-24T13:19:09.000Z","size":108,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-10-06T03:20:18.843Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/daaain.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2012-07-27T10:28:37.000Z","updated_at":"2013-10-20T01:17:31.000Z","dependencies_parsed_at":"2022-09-17T16:20:58.493Z","dependency_job_id":null,"html_url":"https://github.com/daaain/guard-steering-examples","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daaain%2Fguard-steering-examples","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daaain%2Fguard-steering-examples/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daaain%2Fguard-steering-examples/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daaain%2Fguard-steering-examples/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/daaain","download_url":"https://codeload.github.com/daaain/guard-steering-examples/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246558113,"owners_count":20796696,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-05T03:20:21.960Z","updated_at":"2025-03-31T23:44:33.769Z","avatar_url":"https://github.com/daaain.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"Guard-Steering examples\n=======================\n\nA sample repository to demonstrate Guard-Steering and Steering Ruby gems on some Handlebars templates and partials.\n\n[Handlebars.js](http://handlebarsjs.com/) is a great JavaScript templating engine, based on [Mustache](http://mustache.github.com/), but adding the ability to precompile templates and to create custom helpers.\n\n[Steering](https://github.com/pixeltrix/steering) is a Ruby wrapper for the Handlebars library, making it possible to compile and precompile templates, using the magic of the ExecJS engine.\n\n[Guard-Steering](https://github.com/daaain/guard-steering) is a [Guard](https://github.com/guard/guard) built around Steering to make it possible to recompile templates as they are edited by watching the changes in your file system.\n\nNow having all these out of the way let's see how to get set up:\n\n1. Install [RubyGems](https://rubygems.org/) and [Bundler](http://gembundler.com/) if you haven't done so yet\n2. Clone this repository and run `bundle install` on the command line inside the main folder (Bundler is configured to install everything under `vendor` in the project folder, so don't worry about your system being messed up)\n3. Load each example into your favourite browser to first see how the templates are not working yet, only placeholder text is going to be displayed\n4. Run `bundle exec guard` on the command line and you should see messages telling you that Guard-Steering has created the precompiled templates\n5. Reload the examples in your browser and if everything went well you should see the templates nicely rendered\n\nIf you haven't done so, take a look at the `Guardfile` and the example folders to understand what has just happened.\n\n## Basic example\n\nA very simple example, a placeholder `div` will be replaced by small template.\n\n## Partials example\n\nIn this example a list is generated with a few items. The trick is that the list itself is also a template, which then renders the list item template as partial.\n\nIn order to make this possible, you have to use the `:register_partials =\u003e true` option in the `Guardfile` so that Guard-Steering will register the templates as partials in the precompiled JavaScript files.\n\n## License\n\nPublic domain – do whatever you feel like with it!","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdaaain%2Fguard-steering-examples","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdaaain%2Fguard-steering-examples","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdaaain%2Fguard-steering-examples/lists"}