diff --git a/example/encrypted/example.html b/example/encrypted/example.html index 7be759a..23428ff 100644 --- a/example/encrypted/example.html +++ b/example/encrypted/example.html @@ -773,7 +773,7 @@ exports.init = init; })()) const templateError = 'Bad password!', isRememberEnabled = true, - staticryptConfig = {"encryptedMsg":"8a6a36f590c75f2196594c3e955c060ebd4fc20fd39b7abe84a7f1032bec5b4037cae9ba6f0290bfb8fc4c40edb809a5a228f5917f53f4c2e72199854d5748b6290124201568f6b3d23f7bb2bfa30ac4c7dd9897fa32d65010aaddea5813e6c542b6761e0714d464b2d4f2a6574dea491af2856c6704d19026a301b3094d17ba43fad651256b870d659c41e33564e26c7e54bec1b69adf9f26f19cc6dad658485fdc01eb3b19685481ee1c58ba13f74c2962343da552c3bfb5d44197736e8743","isRememberEnabled":true,"rememberDurationInDays":0,"salt":"b93bbaf35459951c47721d1f3eaeb5b9"}; + staticryptConfig = {"encryptedMsg":"ec966bcc5ec514148b6b329f4f4f4e5e38767cf6c88303e29f692b4e8de540eb678dccbe750aeabe7cd361384bdc79c66b85254710d5b20673d4d28781a6129d980f0287980b5307cca6d41371eb9542b79b8582c334dfa9f5dfa45a3ec3205eb6462c309b36b94e0a5aa76fe26013b1919175e802b354ff942f4330879245425b5851b069d78a4e606240f43496913150f2c34780f658c875480a6ea07a0d2d92967d9079622b3ebcfc9b4540f8bcc4d49f356db6895f614d13e8287b7be4ad","isRememberEnabled":true,"rememberDurationInDays":0,"salt":"b93bbaf35459951c47721d1f3eaeb5b9"}; // you can edit these values to customize some of the behavior of StatiCrypt const templateConfig = { diff --git a/index.html b/index.html index 851343d..43970ff 100644 --- a/index.html +++ b/index.html @@ -565,7 +565,11 @@ exports.init = init; window.formater = ((function(){ const exports = {}; /** - * Replace the placeholder tags (between '/*[|tag|]* /0') in the template string with provided data. + * Replace the variable in template tags, between '/*[|variable|]* /0' (without the space in '* /0', ommiting it would + * break this comment), with the provided data. + * + * This weird format is so that we have something that doesn't break JS parser in the template files (it understands it + * as '0'), so we can still use auto-formatting. * * @param {string} templateString * @param {Object} data