Proyectos de Subversion Moodle

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1 efrain 1
Description of Mustache library import into moodle.
2
 
3
1) Download the latest version of mustache.php from upstream (found
4
at https://github.com/bobthecow/mustache.php/releases)
5
 
6
2) Move the src/ and LICENSE file into lib/mustache
7
 
8
e.g.
9
wget https://github.com/bobthecow/mustache.php/archive/v2.13.0.zip
10
unzip v2.13.0.zip
11
cd mustache.php-2.13.0/
12
mv src /path/to/moodle/lib/mustache/
13
mv LICENSE /path/to/moodle/lib/mustache/
14
 
15
Local changes:
16
 
17
Note: All this changes need to be reviewed on every upgrade and, if they have
18
been already applied upstream for the release being used, can be removed
19
from the list. If still not available upstream, they will need to be re-applied.
20
 
21
1) If the relevant pull request has not been accepted yet, apply the following commit, so we are able to disable unnecessary rendering:
22
https://github.com/bobthecow/mustache.php/pull/402/commits/db771014c7e346438f68077813ebdda3fdae12df#
23
This can be achieved by:
24
    a) Download the patch from
25
    https://github.com/bobthecow/mustache.php/pull/402/commits/db771014c7e346438f68077813ebdda3fdae12df.patch
26
    b) In terminal, navigate to lib/mustache/src/Mustache
27
    c) Run the following: patch --directory . < ~/path/to/patch.patch
28
    d) We do not need the unit test, so run rm DisableLambdaRenderingTest.php