Ir a la última revisión | Autoría | Comparar con el anterior | Ultima modificación | Ver Log |
Description of Mustache library import into moodle.1) Download the latest version of mustache.php from upstream (foundat https://github.com/bobthecow/mustache.php/releases)2) Move the src/ and LICENSE file into lib/mustachee.g.wget https://github.com/bobthecow/mustache.php/archive/v2.13.0.zipunzip v2.13.0.zipcd mustache.php-2.13.0/mv src /path/to/moodle/lib/mustache/mv LICENSE /path/to/moodle/lib/mustache/Local changes:Note: All this changes need to be reviewed on every upgrade and, if they havebeen already applied upstream for the release being used, can be removedfrom the list. If still not available upstream, they will need to be re-applied.1) If the relevant pull request has not been accepted yet, apply the following commit, so we are able to disable unnecessary rendering:https://github.com/bobthecow/mustache.php/pull/402/commits/db771014c7e346438f68077813ebdda3fdae12df#This can be achieved by:a) Download the patch fromhttps://github.com/bobthecow/mustache.php/pull/402/commits/db771014c7e346438f68077813ebdda3fdae12df.patchb) In terminal, navigate to lib/mustache/src/Mustachec) Run the following: patch --directory . < ~/path/to/patch.patchd) We do not need the unit test, so run rm DisableLambdaRenderingTest.php