From 2dfb90d0e5070f71bac34ab54346e25e5b853139 Mon Sep 17 00:00:00 2001 From: Felix Kaspar Date: Sun, 22 Oct 2023 01:18:04 +0200 Subject: [PATCH] Updated CONTRIBUTE.md --- CONTRIBUTE.md | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/CONTRIBUTE.md b/CONTRIBUTE.md index 3ead06e7..460783c6 100644 --- a/CONTRIBUTE.md +++ b/CONTRIBUTE.md @@ -11,8 +11,20 @@ This file should introduce you with the concepts and tools used in this project. In order to add a PDF-Function there are several files that need to be changed. If the function is on the backend only, or on only on the frontend, you just need to add it to one of the locations. If it is available on both, you need to update both locations. Dependency Injection is used to accomodate for different imports across platforms. -### Backend - Backend functions can have different implementations than their frontend counterparts if neccesary. Otherwise they can just link to their frontend implementation. -### Frontend \ No newline at end of file +Registering functions will also pass them their dependencies for the specific target platform (Node, Browser) + +### Backend + +[Register Functions](/functions.js)\ +[Functions Folder](/functions/) + +Examples that go in the node-functions folder: server-side-only functions, different implementation for backend + +### Frontend + +[Register Functions](/public/functions.js)\ +[Functions Folder](/public/functions/) + +Examples that go in the browser-functions folder: client-side-only functions, shared functions