{"id":15295965,"url":"https://github.com/axfab/fastapp","last_synced_at":"2026-04-27T12:02:50.525Z","repository":{"id":57233180,"uuid":"41570440","full_name":"AxFab/fastapp","owner":"AxFab","description":"A html template engine design to create web apps.","archived":false,"fork":false,"pushed_at":"2015-10-15T10:48:21.000Z","size":208,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-09-17T22:00:43.389Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/AxFab.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}},"created_at":"2015-08-28T21:43:36.000Z","updated_at":"2015-08-28T21:44:04.000Z","dependencies_parsed_at":"2022-08-31T14:11:23.876Z","dependency_job_id":null,"html_url":"https://github.com/AxFab/fastapp","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/AxFab/fastapp","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AxFab%2Ffastapp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AxFab%2Ffastapp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AxFab%2Ffastapp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AxFab%2Ffastapp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AxFab","download_url":"https://codeload.github.com/AxFab/fastapp/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AxFab%2Ffastapp/sbom","scorecard":{"id":18397,"data":{"date":"2025-08-11","repo":{"name":"github.com/AxFab/fastapp","commit":"3755eede3cee96da2da8a12fb0177cb62871b8ad"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.6,"checks":[{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Code-Review","score":0,"reason":"Found 0/23 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":0,"reason":"license file not detected","details":["Warn: project does not have a license file"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}}]},"last_synced_at":"2025-08-14T16:16:29.426Z","repository_id":57233180,"created_at":"2025-08-14T16:16:29.426Z","updated_at":"2025-08-14T16:16:29.426Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32335297,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-26T23:26:28.701Z","status":"online","status_checked_at":"2026-04-27T02:00:06.769Z","response_time":128,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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-09-30T18:08:46.326Z","updated_at":"2026-04-27T12:02:50.466Z","avatar_url":"https://github.com/AxFab.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# FastApp\n\nA html template engine design to create web apps.\n\n[![Npm version](https://badge.fury.io/js/fastapp.svg)](https://badge.fury.io/js/fastapp)\n\u0026nbsp; \n[![npm download](https://img.shields.io/npm/dm/fastapp.svg)](https://www.npmjs.com/package/fastapp)\n\n[![Build Status](https://api.travis-ci.org/AxFab/fastapp.svg?branch=master)](http://travis-ci.org/axfab/fastapp)\n\u0026nbsp; \n[![Coverage Status](https://img.shields.io/coveralls/AxFab/fastapp.svg)](https://coveralls.io/r/AxFab/fastapp?branch=master)\n\u0026nbsp;\n[![Codacy Badge](https://api.codacy.com/project/badge/9f2126cc157c451fa996d83517fcdf00)](https://www.codacy.com/app/fabien-bavent/fastapp)\n\u0026nbsp; \n[![Dependencies](https://david-dm.org/AxFab/fastapp.svg)](https://david-dm.org/AxFab/fastapp)\n\n## Installation\n\n    npm install fastapp\n    \n## Features\n\n  - Complies with the [Express](1) web rooter.\n  - Mark command tag using`#{ code /}`\n\n\n## Commands\n\nThe markup language is composed of tag of this form:\n\n    #{command first_Arg, second_Arg, ... /}\n\nThe available commands are:\n\n - __set__: Assign the value of the expression(2) to the variable name(1).\n - __get__: Replace this tag by the value of the expression(1).\n - __get_if__: If the condition(1) is true, replace this tag by the value of the expression(2) else by the second expression(3).\n - __include__: Insert the content of the file indicate by the value of the expression(1).\n - __doLayout___: Insert the content of the child template.\n - __extends___: Define the parent of this template (see [extends](#extends)).\n\n```html\n#{set title,'MyPage' /}\n#{set menu,'home' /}\n#{extends '/model.html' /}\n\u003cdiv\u003e...\u003c/div\u003e\n#{include '/menu-' + menu + '.html' /}\n\u003cp\u003eBienvenue sur #{get title/}\u003c/p\u003e\n```\n\n\n## Usage\n\nYou can use this script of three different ways.\nOn command line:\n    \u003e node lib/fastapp.js [html_file]\n    \nOn your script:\n```js\nvar fapp = require ('fastapp')\nfapp.buildFile(path, null, function (err, data) {\n //...\n});\n```\n\nUsing Express:\n```js\nvar fapp = require('fastapp'),\n    express = require('express'),\n    app = express(),\n    option = { /* ... */ }\n\n// What's on /dist folder is freely accessible\napp.get('/dist', express.static(__dirname + '/dist'));\n// For the rest, we use the engine\napp.get('/views', fapp.lookAt(__dirname + '/views', option));\n\napp.listen(80);\n```\n\n\n## Options\n\n  - `cache` If true, will keep static page into memory.\n  - `params` Array of values accessible via `params.name`\n  - `query` Array of values accessible via `params.query`\n  - `debug` Output debug information\n  - `open` Open tag, defaulting to \"#{\n  - `close` Closing tag, defaulting to \"/}\"\n  - `directory` Change of directory (default is `./views`)\n\n\n## Extends\n\nA real advantage about this template is to insert content of other pages. \nYou have two way of doing this, the extends and include commands.\n\nThe extends allow to define a parent. This is always the last executed command on the page.\n\n## Example\n\n##### ./views/model.html\n```html\n\u003chtml\u003e\n  \u003chead\u003e\n    \u003ctitle\u003e#{get title/}\u003c/title\u003e\n    ...\n  \u003c/head\u003e\n  \u003cbody\u003e\n    \u003cheader\u003e\n    ...\n    #{include '/menu.html' /}\n    \u003c/header\u003e\n    \u003cdiv id=\"content\"\u003e\n    #{doLayout /}\n    \u003c/div\u003e\n    \u003cfooter\u003e...\u003c/footer\u003e\n  \u003cbody\u003e\n\u003chtml\u003e\n```\n\n##### ./views/index.html\n```html\n#{set title 'MyPage' /}\n#{set menu, 'home' /}\n#{extends '/models.html' /}\n\u003ch1\u003eWelcome #{get_if query.user!=null, query.user, 'new visitor'}!\u003c/h1\u003e\n\u003cp\u003eThis is my page\u003c/p\u003e\n```\n\n##### ./views/menu.html\n```html\n\u003cul class=\"nav\"\u003e\n  \u003cli class=\"#{get_if menu=='home', 'active'/}\"\u003e\u003ca href=\"#\"\u003eHome\u003c/a\u003e\n  \u003cli class=\"#{get_if menu=='ptfl', 'active'/}\"\u003e\u003ca href=\"#\"\u003ePortfolio\u003c/a\u003e\n  \u003cli class=\"#{get_if menu=='about', 'active'/}\"\u003e\u003ca href=\"#\"\u003eAbout\u003c/a\u003e\n\u003c/ul\u003e\n```\n\n##### RENDER (indentation corrected)  /index.html?user=Fab\n```html\n\u003chtml\u003e\n  \u003chead\u003e\n    \u003ctitle\u003eMyPage\u003c/title\u003e\n    ...\n  \u003c/head\u003e\n  \u003cbody\u003e\n    \u003cheader\u003e\n    ...\n      \u003cul class=\"nav\"\u003e\n        \u003cli class=\"active\"\u003e\u003ca href=\"#\"\u003eHome\u003c/a\u003e\n        \u003cli class=\"\"\u003e\u003ca href=\"#\"\u003ePortfolio\u003c/a\u003e\n        \u003cli class=\"\"\u003e\u003ca href=\"#\"\u003eAbout\u003c/a\u003e\n      \u003c/ul\u003e\n    \u003c/header\u003e\n    \u003cdiv id=\"content\"\u003e\n      \u003ch1\u003eWelcome Fab!\u003c/h1\u003e\n      \u003cp\u003eThis is my page\u003c/p\u003e\n    \u003c/div\u003e\n    \u003cfooter\u003e...\u003c/footer\u003e\n  \u003cbody\u003e\n\u003chtml\u003e\n```\n\n\n## License\nThis code is under the BSD 3-Clause license.\n\n\n [1]: http://expressjs.com\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faxfab%2Ffastapp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faxfab%2Ffastapp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faxfab%2Ffastapp/lists"}