{"id":27396343,"url":"https://github.com/labgua/twig_plugin","last_synced_at":"2025-04-13T23:34:46.155Z","repository":{"id":44192835,"uuid":"69655697","full_name":"labgua/twig_plugin","owner":"labgua","description":"Include Twig Engine in GetSimple CMS for make simple themes","archived":false,"fork":false,"pushed_at":"2022-09-30T20:23:49.000Z","size":1185,"stargazers_count":0,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2023-03-11T21:56:05.114Z","etag":null,"topics":["cms","engine","getsimple","mvc","twig"],"latest_commit_sha":null,"homepage":"http://get-simple.info/extend/plugin/twig-plugin/1066/","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/labgua.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-09-30T09:58:48.000Z","updated_at":"2020-04-23T21:39:34.000Z","dependencies_parsed_at":"2023-01-18T16:32:45.310Z","dependency_job_id":null,"html_url":"https://github.com/labgua/twig_plugin","commit_stats":null,"previous_names":[],"tags_count":null,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/labgua%2Ftwig_plugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/labgua%2Ftwig_plugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/labgua%2Ftwig_plugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/labgua%2Ftwig_plugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/labgua","download_url":"https://codeload.github.com/labgua/twig_plugin/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248797855,"owners_count":21163206,"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":["cms","engine","getsimple","mvc","twig"],"created_at":"2025-04-13T23:34:16.604Z","updated_at":"2025-04-13T23:34:46.140Z","avatar_url":"https://github.com/labgua.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# twig_plugin\nInclude Twig Engine in GetSimple CMS for make simple themes\n\nThis plugin allows you to use the Twig template engine within the themes that use it.\nIn particular, the plug-in incorporates the twig code and offers 3 functions that allow you to instantiate and run the render of a twig-script.\nThese functions can be easily called in the GetSimple template file.\n\nThe plugin defines the following functions:\n\n## getTwig ()\nThis function returns an instance of twig already initialized.\nThe plugin is assumed that into the theme is present the 'views' folder where the script will look for twig-files\n\n## getPageModel ()\nThis function return a Page object; This object contains all the information which refer the page to load, the selected theme, general information of the site, including of course the title of the page and its contents.\nThis is a wrapper of the most important information for implementing the page to display\n\n## render ()\nThis method is a shortcut that allows you to run the render the page in question, the requested page.\nThis uses the above functions to RETURN the content to display.\n\n#Installation\nYou can download the plugin from the GetSimple repository [here](http://get-simple.info/extend/plugin/twig-plugin/1066/) and extract the content in to the 'plugins' folder of GetSimple;\nOR you can download the master in github and put in the plugin directory only the 'twig_plugin' folder and the 'twig_plugin.php' file.\n\n\n#How To build a theme with the plugin?\nIn mytheme folder you will also find a skeleton theme, to be used to build new themes\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flabgua%2Ftwig_plugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flabgua%2Ftwig_plugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flabgua%2Ftwig_plugin/lists"}