{"id":18799562,"url":"https://github.com/l2silver/pagitter","last_synced_at":"2026-01-02T20:30:14.564Z","repository":{"id":57318220,"uuid":"51044035","full_name":"l2silver/pagitter","owner":"l2silver","description":"An advanced file generator","archived":false,"fork":false,"pushed_at":"2016-03-04T03:01:23.000Z","size":4200,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-29T23:11:40.190Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/l2silver.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":"2016-02-04T01:33:49.000Z","updated_at":"2016-02-05T03:34:45.000Z","dependencies_parsed_at":"2022-08-25T22:41:28.752Z","dependency_job_id":null,"html_url":"https://github.com/l2silver/pagitter","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/l2silver%2Fpagitter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/l2silver%2Fpagitter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/l2silver%2Fpagitter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/l2silver%2Fpagitter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/l2silver","download_url":"https://codeload.github.com/l2silver/pagitter/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239727764,"owners_count":19687243,"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-11-07T22:15:46.216Z","updated_at":"2026-01-02T20:30:14.515Z","avatar_url":"https://github.com/l2silver.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Pagitter\n\nThe lightweight file generator designed to facilitate application development.\n\n[![Build Status](https://travis-ci.org/l2silver/pagitter.svg?branch=master)](https://travis-ci.org/l2silver/pagitter)\n\n### Examples\n\n*home/yourProject/pagitter.js*\n````\n/*_ example.js */\n()=\u003e{\nconsole.log('hello')\n}\n````\n````\n$ pgt\n````\n---\u003e\n*home/yourProject/example.js*\n````\n()=\u003e{\nconsole.log('hello')\n}\n````\n````\n$ pgt --watch\n````\n*home/yourProject/pagitter.js*\n````\n/*_ example.js */\n()=\u003e{\nconsole.log('After running pgt with a watch option, \nanytime the pagitter file is saved, the files will be regenerated')\n}\n````\n---\u003e\n*home/yourProject/example.js*\n````\n()=\u003e{\nconsole.log('After running pgt with a watch option, \nanytime the pagitter file is saved, the files will be regenerated')\n}\n````\n*home/yourProject/pagitter.js*\n````\n/*_ \u003c!callWhat=variable!\u003e example.js */\n()=\u003e{\nconsole.log('Call \u003c!callWhat!\u003es declared in the code section')\n}\n/*_ example2.js */\n()=\u003e{\nconsole.log('Once a \u003c!callWhat!\u003e is declared, \nall codes downstream in the pagitter file will have access to it, \nunless it is overwritten')\n}\n/*_ @callWhat@/example.js */\n()=\u003e{\nconsole.log('Variables can also be called in the \ncode section by wrapping them in @ symbols')\n}\n/*_ \u003c!3=^^1 + 1 + 1!\u003e example@3@.js */\n()=\u003e{\nconsole.log('variables will be evaluated if they start with ^^')\n}\n````\n### Setup\nCreate a config file called `pgt.config.js`\nThis file will hold the plugins to be used with pagitter.\n\n*Example pgt.config.js*\n````\n{\n\t\"plugins\": [\n\t\t\"pagitter-write\"\n\t\t, \"pagitter-store\"\n\t]\n}\n````\nThen create your first pagitter.js file in the root directory\n````\n/*_ example.js */\n````\nAnd run `$ pgt` to output the file\n### Stores\nPagitter comes with the store plugin which allows you to create stores\n\n*home/yourProject/pagitter.js*\n````\n/*_ \u003c!pagitterStoresCreate=storeName!\u003e example.js */\n()=\u003e{\nconsole.log('this creates a store file in the .pagitter folder in the root directory')\nconsole.log('starting from when the store is created\n, all of the following code and content will be saves to the store')\n}\n````\nAfter you save a store, you can access it by running the following command\n````\n$pgt --reverse storeName\n````\nWe use the reverse option because before the store is thrown into the pagitter file, because it looks through all of the wouldbe files in the store, and records their content. That way, a user can make regular changes to the content, and still use pagitter to update files without worrying about overwriting new content.\n### Delete Files\nPagitter comes with a delete plugin that allows users to delete all of the filenames in the pagitter.js document. This is useful for quickly changing the names of a group of files that share a similar name component.\n\n*For Example*\nSuppose you had:  \nuserController.js\nuserModel.js\nuserView.js\n\nwhich you wanted to change to:  \npersonController.js\npersonModel.js\npersonView.js\n\n*home/yourProject/pagitter.js*\n````\n/*_ \u003c!baseName=user!\u003e @baseName@Controller.js */\n...\n/*_  @baseName@Model.js */\n...\n/*_  @baseName@View.js */\n...\n````\n````\n$pgt --d\n````\n---\u003eDeletes userController.js, userModel.js, userView.js\n*home/yourProject/pagitter.js*\n````\n/*_ \u003c!baseName=person!\u003e @baseName@Controller.js */\n...\n/*_  @baseName@Model.js */\n...\n/*_  @baseName@View.js */\n...\n````\n---\u003eWrites personController.js, personModel.js, personView.js","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fl2silver%2Fpagitter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fl2silver%2Fpagitter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fl2silver%2Fpagitter/lists"}