{"id":17109735,"url":"https://github.com/bleargh45/template-plugin-stripcomments","last_synced_at":"2025-03-23T21:41:54.090Z","repository":{"id":56840646,"uuid":"325878291","full_name":"bleargh45/Template-Plugin-StripComments","owner":"bleargh45","description":"Template Toolkit filter to strip comment blocks","archived":false,"fork":false,"pushed_at":"2023-06-12T20:11:25.000Z","size":33,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-29T05:14:04.388Z","etag":null,"topics":["html-comments","template-toolkit"],"latest_commit_sha":null,"homepage":"http://metacpan.org/release/Template-Plugin-StripComments/","language":"Perl","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bleargh45.png","metadata":{"files":{"readme":"README.md","changelog":"Changes","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-12-31T21:50:45.000Z","updated_at":"2023-03-13T02:54:47.000Z","dependencies_parsed_at":"2022-08-29T01:51:20.136Z","dependency_job_id":null,"html_url":"https://github.com/bleargh45/Template-Plugin-StripComments","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bleargh45%2FTemplate-Plugin-StripComments","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bleargh45%2FTemplate-Plugin-StripComments/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bleargh45%2FTemplate-Plugin-StripComments/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bleargh45%2FTemplate-Plugin-StripComments/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bleargh45","download_url":"https://codeload.github.com/bleargh45/Template-Plugin-StripComments/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245175322,"owners_count":20572781,"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":["html-comments","template-toolkit"],"created_at":"2024-10-14T16:24:12.597Z","updated_at":"2025-03-23T21:41:54.064Z","avatar_url":"https://github.com/bleargh45.png","language":"Perl","funding_links":[],"categories":[],"sub_categories":[],"readme":"# NAME\n\nTemplate::Plugin::StripComments - Template Toolkit filter to strip comment blocks\n\n# SYNOPSIS\n\n```\n[% USE StripComments %]\n...\n[% FILTER stripcomments %]\n  /* C-style block comments get removed */\n\n  \u003c!-- as do HTML comments --\u003e\n[% END %]\n...\n[% text | stripcomments %]\n```\n\n# DESCRIPTION\n\n`Template::Plugin::StripComments` is a filter plugin for [Template::Toolkit](https://metacpan.org/pod/Template%3A%3AToolkit),\nwhich strips comment blocks from the filtered text.\n\nThe following types of comment blocks are stripped:\n\n- /\\* c-style comments \\*/\n- \u0026lt;!-- HTML comments --\u003e\n\n# METHODS\n\n- init()\n\n    Initializes the template plugin.\n\n- filter($text)\n\n    Filters the given text, removing comment blocks as necessary.\n\n# AUTHOR\n\nGraham TerMarsch \u003ccpan@howlingfrog.com\u003e\n\n# COPYRIGHT\n\nCopyright (C) 2007, Graham TerMarsch.  All Rights Reserved.\n\nThis is free software; you can redistribute it and/or modify it under the same\nterms as Perl itself.\n\n# SEE ALSO\n\n[Template::Plugin::Filter](https://metacpan.org/pod/Template%3A%3APlugin%3A%3AFilter).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbleargh45%2Ftemplate-plugin-stripcomments","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbleargh45%2Ftemplate-plugin-stripcomments","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbleargh45%2Ftemplate-plugin-stripcomments/lists"}