krl
Building a hash inside a function
I have a function that returns a hash, given certain parameters: build_message = function(from, to, bcc, subject, tag, htmlbody, textbody, replyto) {[详细]
2023-02-21 20:37 分类:问答How to set up predicates in KRL?
I have the following in my global block: test = defaction(){ if(5>10) then { notify(\"yes\",\"yes\");[详细]
2023-02-20 16:52 分类:问答KRL: Parsing string as JSON
After using ht开发者_如何学JAVAtp:get(), I receive back a string from picking the \"content\" from the hash:[详细]
2023-02-20 03:16 分类:问答Beestings in a heredoc within a global function
I\'m having trouble with using beestings in a heredoc in a global function. The runtime throws an error \"Exception: arg2 is not defined\". Here is an example:[详细]
2023-02-19 16:27 分类:问答When I use a KRL module do I get the deployed version?
Does importin开发者_如何学运维g a module get the deployed version in KRL? Suppose I want to use the development version, can I get that instead?You will currently get the same version as the app you a[详细]
2023-02-19 14:36 分类:问答How do I slice an array in KRL
I have a bunch of HTML fragments in an array (thank yo开发者_如何学Gou query()) but I only want to use the first five. I\'m using foreach to inject the fragments into a page.[详细]
2023-02-19 10:24 分类:问答Domains not updating?
I attempted to add another dispatch domain to a Kynetx app yesterday and could not get the app to fire on the new domain. I\'ve seen some lag on domain updating before (usually limited to an hour or s[详细]
2023-02-18 04:27 分类:问答String replacement, regular expressions
I\'d like to do string replacement in the pre block of a rule using regular expressions. I know there is开发者_JAVA技巧 a function to do that, but I can\'t find it. Hints?[详细]
2023-02-17 17:31 分类:问答What is the best way to iterate over a Hash in KRL?
Let\'s say I have a hash where I don\'t know the contents of the hash (so I can\'t use pick for this). Here is an example of the hash:[详细]
2023-02-17 16:43 分类:问答KRL extended quoting
There are two ways to do extended quoting in KRL. One of them is documented under Literals on Kynetx Docs. That looks like this:[详细]
2023-02-15 11:45 分类:问答