{"id":16445799,"url":"https://github.com/mslinn/slim_explorer","last_synced_at":"2025-02-26T10:14:33.755Z","repository":{"id":142057130,"uuid":"462904187","full_name":"mslinn/slim_explorer","owner":"mslinn","description":"Quickly Iterate Slim Language Templates","archived":false,"fork":false,"pushed_at":"2023-11-12T02:48:33.000Z","size":593,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-09T01:12:04.080Z","etag":null,"topics":["ruby","slim-language"],"latest_commit_sha":null,"homepage":"https://mslinn.com/blog/2022/02/22/testing-slim.html","language":"Ruby","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/mslinn.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-02-23T21:00:55.000Z","updated_at":"2022-08-13T14:00:50.000Z","dependencies_parsed_at":"2023-11-12T03:25:47.498Z","dependency_job_id":"b20e293f-73bb-4d0d-a392-600cac25d70d","html_url":"https://github.com/mslinn/slim_explorer","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/mslinn%2Fslim_explorer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mslinn%2Fslim_explorer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mslinn%2Fslim_explorer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mslinn%2Fslim_explorer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mslinn","download_url":"https://codeload.github.com/mslinn/slim_explorer/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240831381,"owners_count":19864718,"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":["ruby","slim-language"],"created_at":"2024-10-11T09:45:28.390Z","updated_at":"2025-02-26T10:14:33.659Z","avatar_url":"https://github.com/mslinn.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Slim Language Explorer\n\nhttps://user-images.githubusercontent.com/485818/155521347-856ca755-cb89-4bc7-97ce-fa69d091cf7a.mp4\n\n[Slim](https://github.com/slim-template/slim#configuring-slim) is a cool way to generate a potentially\ncomplex HTML block with a minimum of characters.\nMost often, Slim is thought of as an alternative to Ruby on Rail's ERB, however it is useful in a broad range of contexts.\n\nWhen you are trying to figure out how to express HTML in Slim, however, you inevitably rerun the generation\nprocess over and over.\nThis git project consists of a small Ruby program that launches Slim, whenever a file is modified,\ncreated or deleted within the project.\nThis allows you to edit the Slim 'program', and view its output each time you save it.\n\n\n## Installation\n\n  1. [Install full Ruby](https://www.ruby-lang.org/en/documentation/installation/); this should include the development tools.\n  2. Clone this git repo.\n  3. Install dependent gems. From the cloned git repo directory, type:\n\n     ```shell\n     $ bundle install\n     ```\n\n\n## Slim Language REPL\n\nIn some sense, this is a REPL for the Slim Language.\n\n\n### Command-line Mode\n\nThe video above demonstrates command-line mode running in Visual Studio Code.\n\n  1) Start a bash shell and type:\n\n     ```shell\n     $ ./slim_explorer\n     ```\n\n     The contents of `watched/template.slim` are evaluated and stored into `www/raw.html`\n     using the keys and values stored in file `watched/scope.yaml`.\n\n  2) Use the editor of your choice to modify any file in the `watched` directory.\n\n  3) The contents of `watched/template.slim` are re-evaluated and `www/raw.html` is updated each\n    time a file in the `watched` directory is saved, created or deleted.\n    This continues until interrupted.\n\n\n### Web Server Mode\n\n  1) Start a bash shell and type:\n\n     ```shell\n     $ ./slim_explorer serve\n     ```\n\n     The contents of `watched/template.slim` are evaluated and stored into `www/index.html`\n     using the keys and values stored in file `watched/scope.yaml`.\n\n  2) The file `www/index.html` will be generated.\n     Open it in your favorite web browser, either from the file,\n     or at [http://localhost:3030/index.html](http://localhost:3030/index.html).\n     This is what it looks like:\u003cbr/\u003e\n    \u003cimg src=\"doc/server_mode.png\" style=\"max-width: 600px; margin-top: 1em;\" /\u003e\n\n  3) Use the editor of your choice to modify any file in the `watched` directory.\n\n  4) The contents of `watched/template.slim` are re-evaluated and `www/index.html` is updated each time a file in\n    the `watched` directory is saved, created or deleted.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmslinn%2Fslim_explorer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmslinn%2Fslim_explorer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmslinn%2Fslim_explorer/lists"}