{"id":32161025,"url":"https://github.com/proger/hastache-aeson","last_synced_at":"2025-10-21T13:49:37.125Z","repository":{"id":9485711,"uuid":"11374552","full_name":"proger/hastache-aeson","owner":"proger","description":"Aeson support for Hastache","archived":false,"fork":false,"pushed_at":"2015-09-14T07:15:53.000Z","size":202,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-21T13:49:20.105Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://hackage.haskell.org/package/hastache-aeson","language":"Haskell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/proger.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":"2013-07-12T17:48:12.000Z","updated_at":"2018-02-14T10:20:26.000Z","dependencies_parsed_at":"2022-08-28T05:30:33.129Z","dependency_job_id":null,"html_url":"https://github.com/proger/hastache-aeson","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/proger/hastache-aeson","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/proger%2Fhastache-aeson","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/proger%2Fhastache-aeson/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/proger%2Fhastache-aeson/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/proger%2Fhastache-aeson/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/proger","download_url":"https://codeload.github.com/proger/hastache-aeson/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/proger%2Fhastache-aeson/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":280272338,"owners_count":26302260,"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-10-21T02:00:06.614Z","response_time":58,"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":"2025-10-21T13:49:31.769Z","updated_at":"2025-10-21T13:49:37.117Z","avatar_url":"https://github.com/proger.png","language":"Haskell","funding_links":[],"categories":[],"sub_categories":[],"readme":"hastache-aeson\n==============\n\n[![Build Status](https://travis-ci.org/proger/hastache-aeson.svg?branch=master)](https://travis-ci.org/proger/hastache-aeson)\n\n* Lets you pass [aeson](http://hackage.haskell.org/package/aeson) `Value` as `MuContext` to [hastache](http://hackage.haskell.org/package/hastache)\n* Since [yaml](http://hackage.haskell.org/package/yaml) is API-compatible to `aeson`, you can also render `yaml` `Value`s.\n\nExample\n-------\n\n```haskell\n{-# LANGUAGE OverloadedStrings #-}\n\nimport qualified Data.ByteString.Char8 as BS\nimport qualified Data.ByteString.Lazy.Char8 as LBS\n\nimport Control.Monad\nimport Data.Maybe (fromJust)\n\nimport Data.Yaml\nimport Text.Hastache\nimport Text.Hastache.Aeson (jsonValueContext)\n\nevent = BS.readFile \"event.yaml\"\ntemplate = BS.readFile \"index.mustache\"\n\nrender template value = hastacheStr defaultConfig template (jsonValueContext value)\n\nmain = do\n    value \u003c- liftM (fromJust . decode) event :: IO Value\n    template' \u003c- template\n    render template' value \u003e\u003e= LBS.putStrLn\n```\n\n\nContributors\n------------\n\n- Viktar Basharymau\n- Vladimir Kirillov\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fproger%2Fhastache-aeson","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fproger%2Fhastache-aeson","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fproger%2Fhastache-aeson/lists"}