{"@context":"https://w3id.org/codemeta/3.0","@type":"SoftwareSourceCode","identifier":"pkg:hackage/tempered","name":"tempered","description":"\n\n[Index]\n\nPackage maintainers\n\nFor package maintainers and hackage trustees\n\nCandidates\n\n\n\n\n\nA dead-simple templating utility for simple shell interpolation.\nUse at your own risk and only on trusted templates.\n\nHere's a simple use-case:\n\nThen we can render the template with tempered ./post.md to get:\n\nIf you want you can add a shebang to the top of your template and just run it\nas an executable, tempered will strip the shebang for you automagically:\n\ntest.txt\n\nExamples Here\n\nMac and Linux binaries are provided HERE;\n\nIf you're familiar with Haskell Stack:\n\nThere's really not much to it; parses the file and runs anything\ninside {{  }} as a shell expression and pipes stdout into its spot.\nIf you're clever you can do pretty much anything you want with this.\n\nSure; It's bash.\n\nYou can set up environment overrides in env.yaml, tempered looks up through\nthe file-system to find an env.yaml from the cwd NOT the template location.\n\nHere's an example env.yaml; we can do simple strings or commands here; just make\nsure to quote any entries that start with {{ or the YAML parser gets mad.\n\nenv.yaml\n\nThen you can use them just like normal variables.\n\nIt's bash; go for it:\n\noutput:\n\nChances are you're forgetting to echo an env-var;\n{{ $TITLE }} will try to run the contents of $TITLE as a command, you want\n{{ echo \"$TITLE\" }}.\n\nProbably.","version":"0.2.0","softwareVersion":"0.2.0","license":"https://spdx.org/licenses/BSD-3-Clause","codeRepository":"https://github.com/ChrisPenner/tempered","issueTracker":"https://github.com/ChrisPenner/tempered/issues","url":"https://github.com/ChrisPenner/tempered#readme","keywords":["bsd3","library","program","templating","Propose Tags"],"programmingLanguage":{"@type":"ComputerLanguage","name":"Haskell"},"maintainer":[{"@type":"Person","name":"ChrisPenner"}],"author":[{"@type":"Person","name":"ChrisPenner"}],"copyrightHolder":[{"@type":"Person","name":"ChrisPenner"}],"dateCreated":"2017-04-22","dateModified":"2017-04-29","datePublished":"2017-04-29","copyrightYear":2017,"downloadUrl":"https://hackage.haskell.org/package/tempered-0.2.0/tempered-0.2.0.tar.gz","applicationCategory":"hackage","runtimePlatform":"hackage","developmentStatus":"active","sameAs":["https://hackage.haskell.org/package/tempered"],"https://www.w3.org/ns/activitystreams#likes":32}