From 5c924876955c9448a0b23238c135f5a2375473f0 Mon Sep 17 00:00:00 2001 From: Arnaud Buchholz Date: Wed, 18 Oct 2017 16:04:20 -0400 Subject: [PATCH] Documentation (#168) --- doc/tutorials/REQUIRE.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/doc/tutorials/REQUIRE.md b/doc/tutorials/REQUIRE.md index 211271a4..10a7e1f2 100644 --- a/doc/tutorials/REQUIRE.md +++ b/doc/tutorials/REQUIRE.md @@ -37,6 +37,8 @@ In general, the `gpf` symbol is always available. It allows you to access the gl `{@see gpf.context}` API. In particular, you may define a gpf module using {@see gpf.require.define}. +### GPF Module + ```JavaScript gpf.require.define({ name1: "dependency1.js", @@ -70,7 +72,7 @@ gpf.require.define({ }); ``` -## Asynchronous Module Definition (AMD) +### Asynchronous Module Definition (AMD) The [AMD](https://en.wikipedia.org/wiki/Asynchronous_module_definition) format @@ -167,7 +169,7 @@ define(function () { }); ``` -## CommonJS +### CommonJS The [CommonJS](https://en.wikipedia.org/wiki/CommonJS) format: