{"id":20602639,"url":"https://github.com/losinggeneration/pipeln","last_synced_at":"2026-04-18T22:02:38.796Z","repository":{"id":27382153,"uuid":"30858077","full_name":"losinggeneration/pipeln","owner":"losinggeneration","description":"A Negroni middleware inspired by Sprockets with Rails.","archived":false,"fork":false,"pushed_at":"2017-03-23T23:51:23.000Z","size":17,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-06T16:41:46.895Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Go","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/losinggeneration.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-02-16T07:27:50.000Z","updated_at":"2017-03-23T23:51:25.000Z","dependencies_parsed_at":"2022-08-20T07:50:17.673Z","dependency_job_id":null,"html_url":"https://github.com/losinggeneration/pipeln","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/losinggeneration/pipeln","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/losinggeneration%2Fpipeln","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/losinggeneration%2Fpipeln/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/losinggeneration%2Fpipeln/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/losinggeneration%2Fpipeln/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/losinggeneration","download_url":"https://codeload.github.com/losinggeneration/pipeln/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/losinggeneration%2Fpipeln/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31986327,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-18T20:23:30.271Z","status":"ssl_error","status_checked_at":"2026-04-18T20:23:29.375Z","response_time":103,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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-11-16T09:14:21.077Z","updated_at":"2026-04-18T22:02:38.723Z","avatar_url":"https://github.com/losinggeneration.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Pipeln\n\nThis is a negroni middleware inspired by Sprockets with Rails.\n\nCurently it has the following features:\n* Asset lookup based on a default (but configurable) layout.\n* Processing Javascript //=require \u0026 //=require_tree\n* Template helpers as convenience functions for script \u0026 link tags.\n\n### Example usage\n```go\npackage main\n\nimport (\n        \"net/http\"\n\n        \"github.com/codegangsta/negroni\"\n        \"github.com/losinggeneration/pipeln\"\n)\n\nfunc main() {\n        mux := http.NewServeMux()\n        n := negroni.Classic()\n\n        n.Use(pipeln.NewAssets())\n        n.UseHandler(mux)\n\n        n.Run(\":8080\")\n}\n```\n\n### Middleware\nThe middleware  should be pretty straight forward. You tell negoroni to use pipeln.NewAssets and pass it an optional pipeln/assets.Options to change the directory layout if you want. The base layout NewAssets is expecting is:\n```\n- assets\n  |- images\n  |- javascripts\n  |- stylesheets\n```\n\n### Assets\nThe assets directory can be searched for assets. It also provides the functionality to process Javscript files to support the\n```\n//= require \u003carg\u003e\n//= require_tree \u003cdir\u003e\n```\ndirectives.\n\n### Templates\nCalling FuncMap and passing an *html.Template as an argument will insert in several helpers to make some head tags for link \u0026 script easier. It uses the sprockets-rails names:\n```\njavascript_include_tag \"script\" tag_opts ( \"attribute\" \"overrides\" )\nstylesheet_link_tag \"stylesheet\" tag_opts ( \"attribute\" \"overrides\" )\nfavicon_link_tag \"icon\" tag_opts ( \"attribute\" \"overrides\" )\ntag_opts \"attribute\" \"overrides\"\n```\ntag_opts on the *_tag's are optional.\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flosinggeneration%2Fpipeln","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flosinggeneration%2Fpipeln","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flosinggeneration%2Fpipeln/lists"}