{"id":17882232,"url":"https://github.com/mackee/nephia-lite","last_synced_at":"2025-04-03T02:13:13.850Z","repository":{"id":145129352,"uuid":"10641454","full_name":"mackee/Nephia-Lite","owner":"mackee","description":"mini and lite WAF. one file, once write, quickly render!","archived":false,"fork":false,"pushed_at":"2013-08-13T16:09:24.000Z","size":139,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-01T12:52:54.851Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Perl","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/mackee.png","metadata":{"files":{"readme":"README.md","changelog":"Changes","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-06-12T11:23:50.000Z","updated_at":"2014-09-09T11:23:31.000Z","dependencies_parsed_at":"2023-04-15T22:06:12.957Z","dependency_job_id":null,"html_url":"https://github.com/mackee/Nephia-Lite","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mackee%2FNephia-Lite","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mackee%2FNephia-Lite/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mackee%2FNephia-Lite/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mackee%2FNephia-Lite/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mackee","download_url":"https://codeload.github.com/mackee/Nephia-Lite/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246922246,"owners_count":20855345,"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":[],"created_at":"2024-10-28T12:49:00.992Z","updated_at":"2025-04-03T02:13:13.831Z","avatar_url":"https://github.com/mackee.png","language":"Perl","funding_links":[],"categories":[],"sub_categories":[],"readme":"# NAME\n\nNephia::Lite - mini and lite WAF. one file, once write, quickly render!\n\n# SYNOPSIS\n\nin app.psgi :\n\n    use Nephia::Lite;\n\n    run {\n        return {\n            title =\u003e 'sample'\n        }\n    };\n\n    __DATA__\n\n    \u003chtml\u003e\n    \u003chead\u003e\n    \u003ctitle\u003e\u003c?= $title ?\u003e\u003c/title\u003e\n    \u003cbody\u003e\n    \u003ch1\u003eHello, \u003c?= $title ?\u003e\u003c/h1\u003e\n    \u003c/body\u003e\n    \u003c/html\u003e\n\nand plackup\n\n    plackup app.psgi\n\nOpen \"http://localhost:5000\" with your favorite browser.\n\nRendered Dynamic Pages in your display!\n\n# DESCRIPTION\n\nNephia::Lite is minimum set of Nephia.\n\nHowever, usable Nephia's feature and useful plugins.\n\n## Lite flavor for nephia-setup - generate skeleton\n\n    nephia-setup appname --flavor=Lite\n\nThis command generate skeleton psgi file with Nephia::Lite.\n\n## Rendering page with template\n\nNephia::Lite use [Text::MicroTemplate](http://search.cpan.org/perldoc?Text::MicroTemplate).\n\nWrite after \\_\\_DATA\\_\\_ in app.psgi.\n\n## JSON Output\n\nDon't write \\_\\_DATA\\_\\_ and templates.\n\nNephia::Lite automatically recognize to you want to JSON.\n\n    use Nephia::Lite;\n\n    run {\n        return {\n            message =\u003e 'Hello! This is a My JSON!!!'\n        };\n    };\n\nOutput\n\n    {\n        'message' : 'Hello! This is a My JSON!!!'\n    }\n\n## Submapped Nephia::Lite application on Nephia\n\nYour Nephia app can wrap Nephia::Lite app.\n\napp.psgi\n\n    use Nephia;\n\n    path '/' =\u003e sub {\n        location =\u003e 'index'\n    };\n\n    path '/subapp' =\u003e 'LiteApp';\n\nLiteApp.pm\n\n    package LiteApp;\n    use Nephia::Lite;\n\n    run {\n        return {\n            title =\u003e 'a little app'\n        };\n    };\n\n    1;\n\n    __DATA__\n\n    \u003c!DOCTYPE html\u003e\n    \u003chtml\u003e\n    \u003chead\u003e\n      \u003ctitle\u003e\u003c?= $title ?\u003e\u003c/title\u003e\n    \u003c/head\u003e\n    \u003cbody\u003e\n      \u003ch1\u003e\u003c?= $title ?\u003e\u003c/h1\u003e\n    \u003c/body\u003e\n    \u003c/html\u003e\n\nLiteApp's root mapped to '/subapp'\n\n## Other features\n\nUse can Nephia's features and plugins.\n\nEx. redirect, header, validate([Nephia::Plugin::Data::Validator](http://search.cpan.org/perldoc?Nephia::Plugin::Data::Validator)) and other DSLs.\n\nBut cannot use Nephia Views yet.\n\n# SEE ALSO\n\n[Nephia](http://search.cpan.org/perldoc?Nephia)\n\n[Text::MicroTemplate](http://search.cpan.org/perldoc?Text::MicroTemplate)\n\n# LICENSE\n\nCopyright (C) macopy.\n\nThis library is free software; you can redistribute it and/or modify\nit under the same terms as Perl itself.\n\n# AUTHOR\n\nmacopy \u003cmacopy\\[attttttt\\]cpan.com\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmackee%2Fnephia-lite","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmackee%2Fnephia-lite","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmackee%2Fnephia-lite/lists"}