Mined Opinions For API: freemarker

This tab contains all the opinions collected from Stack Overflow about the API. The other tabs present summaries of the opinions using different algorithms.
  • Thanks .. details
  • I have tried accessing the value under key "0" by [0], ["0"].. details
  • This is actually what we did, but we put some extra functionality in it which we had use for:<#macro hazStringContent content> <#if content?has_content && content != "">"${content?js_string?replace("\\'", "\'")?replace("\\>",">")}"<#else>null.. details
  • Use a URL_http://freemarker.sourceforge.net/docs/ref_directive_macro.html [FreeMarker-macro] to combine all of the answers above, while making the template more readable and maintainable: CODESNIPPET_JAVA1 .. details
  • Use a URL_http://freemarker.sourceforge.net/docs/ref_directive_macro.html [FreeMarker-macro] to combine all of the answers above, while making the template more readable and maintainable: CODESNIPPET_JAVA1 .. details
  • Hopefully they'll put one in the next version of Freemarker!.. details
  • @Skurpi The advantage is that js_string does the necessary escaping while j_string does not.. details
  • See URL_http://freemarker.sourceforge.net/docs/ref_builtins_string.html#ref_builtin_json_string [here] for exactly how it works.. details
  • The problem was that, similar to hashmaps, freemarker wants a string key.. details
  • I am trying to pass a JSON string from my server to the client and I want to manipulate it with Freemarker.. details
  • Parsing JSON in Freemarker error.. details
  • my freemarker in the HTML: <#assign pj pJson?eval>${pj.0.keyA} the error provided is: CODESNIPPET_JAVA2 .. details
  • If you want to reuse the macro in multiple templates, put it in its own file and URL_http://freemarker.sourceforge.net/docs/ref_directive_include.html [include-the-file] instead of duplicating the macro: CODESNIPPET_JAVA2 .. details
  • EDIT2: In case a single-quote pops up, CODETERM5 will escape it which again leads to invalid JSON.. details
Summaries the opinions about freemarker using topic modeling.
  • 0. content replace macro template null skurpi maintainable key combine functionality: 7
    • Thanks .. details
    • I have tried accessing the value under key "0" by [0], ["0"].. details
    • This is actually what we did, but we put some extra functionality in it which we had use for:<#macro hazStringContent content> <#if content?has_content && content != "">"${content?js_string?replace("\\'", "\'")?replace("\\>",">")}"<#else>null.. details
    • Use a FreeMarker-macro to combine all of the answers above, while making the template more readable and maintainable: CODESNIPPET .. details
    • Hopefully they'll put one in the next version of Freemarker!.. details
    • @Skurpi The advantage is that js_string does the necessary escaping while j_string does not.. details
    • See here for exactly how it works.. details
  • 0. macro script template include case quote edit2 single reuse pop: 6
    • The problem was that, similar to hashmaps, freemarker wants a string key.. details
    • my freemarker in the HTML: <#assign pj pJson?eval>${pj.0.keyA} the error provided is: CODESNIPPET .. details
    • Parsing JSON in Freemarker error.. details
    • I am trying to pass a JSON string from my server to the client and I want to manipulate it with Freemarker.. details
    • If you want to reuse the macro in multiple templates, put it in its own file and include-the-file instead of duplicating the macro: CODESNIPPET .. details
    • EDIT2: In case a single-quote pops up, ?js_script will escape it which again leads to invalid JSON.. details
Summaries of the opinions about freemarker using three algorithms (Textrank, Lexrank and Luhn) adopted from extractive summarization. Each algorithm was used once for the positive opinions and once for the negative opinions.
  • Hopefully they'll put one in the next version of Freemarker!
  • Use a FreeMarker macro to combine all of the answers above, while making the template more readable and maintainable: CODESNIPPET JAVA1 .
  • This is actually what we did, but we put some extra functionality in it which we had use for:<#macro hazStringContent content> <#if content?has content && content != "">"${content?js string?replace("\\'", "\'")?replace("\\>",">")}"<#else>null .
  • See here for exactly how it works .
  • @Skurpi The advantage is that js string does the necessary escaping while j string does not .
  • I have tried accessing the value under key "0" by 0], "0"] .
  • Thanks .
  • Hopefully they'll put one in the next version of Freemarker!
  • .
  • Use a FreeMarker macro to combine all of the answers above, while making the template more readable and maintainable: CODESNIPPET JAVA1 .
  • This is actually what we did, but we put some extra functionality in it which we had use for:<#macro hazStringContent content> <#if content?has content && content != "">"${content?js string?replace("\\'", "\'")?replace("\\>",">")}"<#else>null .
  • See here for exactly how it works .
  • @Skurpi The advantage is that js string does the necessary escaping while j string does not .
  • I have tried accessing the value under key "0" by 0], "0"] .
  • Hopefully they'll put one in the next version of Freemarker!
  • .
  • Use a FreeMarker macro to combine all of the answers above, while making the template more readable and maintainable: CODESNIPPET JAVA1 .
  • This is actually what we did, but we put some extra functionality in it which we had use for:<#macro hazStringContent content> <#if content?has content && content != "">"${content?js string?replace("\\'", "\'")?replace("\\>",">")}"<#else>null .
  • See here for exactly how it works .
  • @Skurpi The advantage is that js string does the necessary escaping while j string does not .
  • I have tried accessing the value under key "0" by 0], "0"] .
  • If you want to reuse the macro in multiple templates, put it in its own file and include the file instead of duplicating the macro: CODESNIPPET JAVA2 .
  • EDIT2: In case a single quote pops up, ?js_script will escape it which again leads to invalid JSON .
  • Parsing JSON in Freemarker error .
  • I am trying to pass a JSON string from my server to the client and I want to manipulate it with Freemarker .
  • my freemarker in the HTML: <#assign pj pJson?eval>${pj 0 keyA} the error provided is: CODESNIPPET JAVA2 .
  • The problem was that, similar to hashmaps, freemarker wants a string key .
  • If you want to reuse the macro in multiple templates, put it in its own file and include the file instead of duplicating the macro: CODESNIPPET JAVA2 .
  • EDIT2: In case a single quote pops up, ?js_script will escape it which again leads to invalid JSON .
  • Parsing JSON in Freemarker error .
  • I am trying to pass a JSON string from my server to the client and I want to manipulate it with Freemarker .
  • my freemarker in the HTML: <#assign pj pJson?eval>${pj 0 keyA} the error provided is: CODESNIPPET JAVA2 .
  • The problem was that, similar to hashmaps, freemarker wants a string key .
  • If you want to reuse the macro in multiple templates, put it in its own file and include the file instead of duplicating the macro: CODESNIPPET JAVA2 .
  • EDIT2: In case a single quote pops up, ?js_script will escape it which again leads to invalid JSON .
  • Parsing JSON in Freemarker error .
  • I am trying to pass a JSON string from my server to the client and I want to manipulate it with Freemarker .
  • my freemarker in the HTML: <#assign pj pJson?eval>${pj 0 keyA} the error provided is: CODESNIPPET JAVA2 .
  • The problem was that, similar to hashmaps, freemarker wants a string key .
Summaries of the opinions about freemarker using Opinosis, an abstractive summarizer of opinions..
Summaries of the opinions about freemarker using contrastive viewpoints. Each entry contains a pair of positive and negative sentences that are most likely discussing about similar API features.
    • Hopefully they'll put one in the next version of Freemarker! .
    • I am trying to pass a JSON string from my server to the client and I want to manipulate it with Freemarker .
Summaries of opinions about based on specific API aspects, such as, performance, usability, etc. The 'Overview' page provides an overview of the aspects detected in the opinions. The 'Trend' page shows the distribution of polarity over time for each aspect. The 'Positive Opinions' page groups positive opinions by the detected aspects. The 'Contrastive By Aspect' page shows paris of contrastive opinions under each aspect (where found).
Features:
  • I have tried accessing the value under key "0" by [0], ["0"].
  • The problem was that, similar to hashmaps, freemarker wants a string key.
Documentation:
  • Use a URL_http://freemarker.sourceforge.net/docs/ref_directive_macro.html [FreeMarker-macro] to combine all of the answers above, while making the template more readable and maintainable: CODESNIPPET_JAVA1 .
  • N/A
Onlysentiment:
  • Thanks .
  • N/A
Bug:
  • N/A
  • Parsing JSON in Freemarker error.
Usability:
  • This is actually what we did, but we put some extra functionality in it which we had use for:<#macro hazStringContent content> <#if content?has_content && content != "">"${content?js_string?replace("\\'", "\'")?replace("\\>",">")}"<#else>null.
  • I am trying to pass a JSON string from my server to the client and I want to manipulate it with Freemarker.
  • Onlysentiment: 1
    1. general: 1
  • Documentation: 2
    1. general: 2
      • Use a URL_http://freemarker.sourceforge.net/docs/ref_directive_macro.html [FreeMarker-macro] to combine all of the answers above, while making the template more readable and maintainable: CODESNIPPET_JAVA1 .. details
      • See URL_http://freemarker.sourceforge.net/docs/ref_builtins_string.html#ref_builtin_json_string [here] for exactly how it works.. details
  • Features: 3
    1. general: 3
      • I have tried accessing the value under key "0" by [0], ["0"].. details
      • Hopefully they'll put one in the next version of Freemarker!.. details
      • @Skurpi The advantage is that js_string does the necessary escaping while j_string does not.. details
  • Usability: 2
    1. general: 2
      • This is actually what we did, but we put some extra functionality in it which we had use for:<#macro hazStringContent content> <#if content?has_content && content != "">"${content?js_string?replace("\\'", "\'")?replace("\\>",">")}"<#else>null.. details
      • Use a URL_http://freemarker.sourceforge.net/docs/ref_directive_macro.html [FreeMarker-macro] to combine all of the answers above, while making the template more readable and maintainable: CODESNIPPET_JAVA1 .. details
  • Features: 2
    1. general: 2
      • The problem was that, similar to hashmaps, freemarker wants a string key.. details
      • If you want to reuse the macro in multiple templates, put it in its own file and URL_http://freemarker.sourceforge.net/docs/ref_directive_include.html [include-the-file] instead of duplicating the macro: CODESNIPPET_JAVA2 .. details
  • Bug: 2
    1. general: 2
      • Parsing JSON in Freemarker error.. details
      • my freemarker in the HTML: <#assign pj pJson?eval>${pj.0.keyA} the error provided is: CODESNIPPET_JAVA2 .. details
  • Usability: 2
    1. general: 2
      • I am trying to pass a JSON string from my server to the client and I want to manipulate it with Freemarker.. details
      • EDIT2: In case a single-quote pops up, CODETERM5 will escape it which again leads to invalid JSON.. details