{"id":16731665,"url":"https://github.com/spearwolf/microdata_fu","last_synced_at":"2025-08-30T22:15:52.129Z","repository":{"id":505150,"uuid":"132532","full_name":"spearwolf/microdata_fu","owner":"spearwolf","description":"Passing microdata from rails to javascript","archived":false,"fork":false,"pushed_at":"2010-03-23T08:50:28.000Z","size":112,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-07-28T03:44:55.956Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/spearwolf.png","metadata":{"files":{"readme":"README.rdoc","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":"2009-02-19T14:56:19.000Z","updated_at":"2019-08-13T14:02:09.000Z","dependencies_parsed_at":"2022-07-07T14:51:21.030Z","dependency_job_id":null,"html_url":"https://github.com/spearwolf/microdata_fu","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/spearwolf/microdata_fu","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spearwolf%2Fmicrodata_fu","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spearwolf%2Fmicrodata_fu/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spearwolf%2Fmicrodata_fu/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spearwolf%2Fmicrodata_fu/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/spearwolf","download_url":"https://codeload.github.com/spearwolf/microdata_fu/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spearwolf%2Fmicrodata_fu/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271732362,"owners_count":24811309,"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","status":"online","status_checked_at":"2025-08-23T02:00:09.327Z","response_time":69,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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-12T23:38:26.295Z","updated_at":"2025-08-30T22:15:52.112Z","avatar_url":"https://github.com/spearwolf.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"= microdata_fu (rails plugin)\n\nA simple rails plugin which enables you to..\n\n- store \u003cem\u003enon-visible data\u003c/em\u003e (microdata) into your html\n- read-out the data from javascript\n\n\n== How to Install\n\nFirst, add microdata_fu to your list of gems in \u003ctt\u003econfig/environment.rb\u003c/tt\u003e:\n\n    config.gem 'spearwolf-microdata_fu', :lib =\u003e 'microdata_fu', :source =\u003e 'http://gems.github.com'\n\nThen insert into your html layout the microdata_fu tag (\u003cem\u003ee.g.\u003c/em\u003e \u003ctt\u003eapp/views/layouts/application.html.erb\u003c/tt\u003e):\n\n    \u003chead\u003e\n      ..\n      \u003c%= microdata_fu %\u003e\n      ..\n    \u003c/head\u003e\n\n\n== Usage Example\n\n=== Define microdata in your controller\n\n    class MyController \u003c\u003c ApplicationController\n      def index\n        microdata :foo, 'foo'\n        microdata :bar, { :abc =\u003e 'ABC', :xyz =\u003e 123 }\n        microdata :user, User.find(params[:id])\n      end\n    end\n\n=== Set microdata storage type\n\n    microdata :foo, 'bar'                      # by default values are stored in controller instance\n    microdata :plah, 'foo', :flash =\u003e true     # use rails flash storage\n    microdata :bar, 'plah!', :session =\u003e true  # use session storage\n\n=== Read-out microdata from javascript\n\nIn javascript you can read-out the microdata through the microdata_fu api:\n\n    var foo = microdata_fu.read('foo');\n\nor use the optional callback function:\n\n    mircodata_fu.read('bar', function(bar) {\n        /* ...do whatever you want with bar here...\n           if bar is undefined this callback won't be executed */\n    });\n\n\n== Author\n\nCopyright (c) 2008-2010 Wolfger Schramm \u003cwolfger@spearwolf.de\u003e, released under the MIT license\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspearwolf%2Fmicrodata_fu","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fspearwolf%2Fmicrodata_fu","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspearwolf%2Fmicrodata_fu/lists"}