{"id":19725326,"url":"https://github.com/bodacious/box_of_tricks","last_synced_at":"2025-07-16T08:33:07.441Z","repository":{"id":1789117,"uuid":"2713003","full_name":"Bodacious/box_of_tricks","owner":"Bodacious","description":"This gem is no longer maintained ","archived":false,"fork":false,"pushed_at":"2011-11-06T13:39:02.000Z","size":220,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-02T06:08:28.029Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://katanacode.github.com/box_of_tricks","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"expressjs/express-namespace","license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Bodacious.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"MIT-LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2011-11-04T23:33:31.000Z","updated_at":"2021-09-22T11:13:31.000Z","dependencies_parsed_at":"2022-08-02T20:30:49.961Z","dependency_job_id":null,"html_url":"https://github.com/Bodacious/box_of_tricks","commit_stats":null,"previous_names":["katanacode/box_of_tricks"],"tags_count":9,"template":false,"template_full_name":null,"purl":"pkg:github/Bodacious/box_of_tricks","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bodacious%2Fbox_of_tricks","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bodacious%2Fbox_of_tricks/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bodacious%2Fbox_of_tricks/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bodacious%2Fbox_of_tricks/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Bodacious","download_url":"https://codeload.github.com/Bodacious/box_of_tricks/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bodacious%2Fbox_of_tricks/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265497448,"owners_count":23776989,"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-11-11T23:29:24.023Z","updated_at":"2025-07-16T08:33:07.408Z","avatar_url":"https://github.com/Bodacious.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# [Box of Tricks](http://github.com/KatanaCode/box_of_tricks \"Katana Code's Box of Tricks\")\n\nThis gem contains a bunch of CSS classes and Rails helper methods that we rely upon regularly\n\n## View Helpers\n\n### BoxOfTricks#title\n\nSets the page title if passed an argument, otherwise returns the page title.\n\n``` rhtml\n \n# layouts/application.html.erb\n \u003c!DOCTYPE\u003e\n \u003chtml\u003e\n \u003chead\u003e\n   \u003ctitle\u003e\u003c%= title %\u003e\u003c/title\u003e\n \u003c/head\u003e\n \u003cbody\u003e\n   \u003c%= yield %\u003e\n \u003c/body\u003e\n \u003c/html\u003e\n \n # users/show.hmtl.erb\n \u003c% title @user.username %\u003e\n```\n\n### BoxOfTricks#field\n\n``` rhtml\n\u003c%= field id: \"my_field\", class: \"user_form\" do %\u003e\n  \u003c%= text_field_tag :user, :username %\u003e\n\u003c% end %\u003e\n\u003c!-- generates: --\u003e\n\u003cdiv class=\"field user_form\" id=\"my_field\"\u003e\n  \u003cinput type=\"text\" name=\"user[username]\" id=\"user_username\"\u003e\n\u003c/div\u003e\n```\n\n### BoxOfTricks#actions\n\n``` rhtml\n\u003c%= actions id: \"my_actions\", class: \"user_form\" do %\u003e\n  \u003c%= submit_tag(\"Save\") %\u003e\n\u003c% end %\u003e\n\u003c!-- generates: --\u003e\n\u003cdiv class=\"actions user_form\" id=\"my_actions\"\u003e\n  \u003cinput type=\"submit\" value=\"Save\" id=\"user_submit\"\u003e\n\u003c/div\u003e\n```\n\n### BoxOfTricks#div\n\n``` rhtml\n\u003c%= div id: \"some_div\", class: \"vague_class\" do %\u003e\n  \u003c%= link_to(\"Click here\", \"#\") %\u003e\n\u003c% end %\u003e\n\u003c!-- generates: --\u003e\n\u003cdiv id=\"some_div\" class=\"vague_class\"\u003e\n  \u003ca href=\"#\"\u003eClick here\u003c/a\u003e\n\u003c/div\u003e\n```\n\n## CSS\n\n### HTML5 Reset Sheet\n\nTo include an HTML reset to your CSS, simply add the following to your application.css file:\n\n``` css\n/* \n*= require html5reset \n*/\n```\n\nThere's also a file named  [**box_of_tricks.css.scss**](https://github.com/KatanaCode/box_of_tricks/blob/master/app/assets/stylesheets/box_of_tricks.css.scss) which comes with a bunch of CSS\nclasses that I constantly rely on.\n\n``` css\n/* \n*= require box_of_tricks \n*/\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbodacious%2Fbox_of_tricks","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbodacious%2Fbox_of_tricks","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbodacious%2Fbox_of_tricks/lists"}