Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 138 for template (0.06 seconds)

  1. docs/en/docs/advanced/templates.md

    ///
    
    ## Writing templates { #writing-templates }
    
    Then you can write a template at `templates/item.html` with, for example:
    
    ```jinja hl_lines="7"
    {!../../docs_src/templates/templates/item.html!}
    ```
    
    ### Template Context Values { #template-context-values }
    
    In the HTML that contains:
    
    {% raw %}
    
    ```jinja
    Item ID: {{ id }}
    ```
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 05 18:13:19 GMT 2026
    - 3.4K bytes
    - Click Count (0)
  2. docs/en/docs/project-generation.md

    # Full Stack FastAPI Template { #full-stack-fastapi-template }
    
    Templates, while typically come with a specific setup, are designed to be flexible and customizable. This allows you to modify and adapt them to your project's requirements, making them an excellent starting point. 🏁
    
    You can use this template to get started, as it includes a lot of the initial set up, security, database and some API endpoints already done for you.
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 05 18:13:19 GMT 2026
    - 1.9K bytes
    - Click Count (0)
  3. src/main/java/org/codelibs/fess/crawler/transformer/FessTransformer.java

         * Puts data into the result data map after processing it through a template script.
         * The template is evaluated using the specified script engine with the value and context.
         *
         * @param dataMap the data map to modify
         * @param key the key to store the processed value under
         * @param value the original value to process
         * @param template the template script to evaluate
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Dec 11 09:47:03 GMT 2025
    - 14.1K bytes
    - Click Count (0)
  4. src/test/java/org/codelibs/fess/job/impl/ScriptExecutorTest.java

                this.prefix = prefix + ":";
            }
    
            @Override
            public Object evaluate(String template, Map<String, Object> paramMap) {
                this.lastScript = template;
                this.lastParams = paramMap;
                return prefix + "processed: " + template;
            }
    
            public String getLastScript() {
                return lastScript;
            }
    
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Wed Jan 14 14:29:07 GMT 2026
    - 10.5K bytes
    - Click Count (0)
  5. src/main/java/org/codelibs/fess/script/groovy/GroovyEngine.java

                final Script script = cached.scriptClass.getDeclaredConstructor().newInstance();
                script.setBinding(new Binding(bindingMap));
    
                if (logger.isDebugEnabled()) {
                    logger.debug("Evaluating Groovy script: template={}", template);
                }
    
                final Object result = script.run();
                logScriptExecution(template, "success");
                return result;
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Mar 26 14:36:23 GMT 2026
    - 11.9K bytes
    - Click Count (0)
  6. guava/src/com/google/common/base/Strings.java

      public static String lenientFormat(
          @Nullable String template, @Nullable Object @Nullable ... args) {
        template = String.valueOf(template); // null -> "null"
    
        if (args == null) {
          args = new Object[] {"(Object[])null"};
        }
    
        // start substituting the arguments into the '%s' placeholders
        StringBuilder builder = new StringBuilder(template.length() + 16 * args.length);
        int templateStart = 0;
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Jan 29 22:14:05 GMT 2026
    - 12.5K bytes
    - Click Count (0)
  7. src/test/java/org/codelibs/fess/script/ScriptEngineTest.java

        @Test
        public void test_evaluate_withEmptyTemplate() {
            String template = "";
            Map<String, Object> paramMap = new HashMap<>();
            paramMap.put("key", "value");
    
            Object result = scriptEngine.evaluate(template, paramMap);
            assertEquals("", result);
        }
    
        // Test evaluate method with null template
        @Test
        public void test_evaluate_withNullTemplate() {
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Wed Jan 14 14:29:07 GMT 2026
    - 12.5K bytes
    - Click Count (0)
  8. src/main/java/org/codelibs/fess/ds/AbstractDataStore.java

        /**
         * Convert the value.
         * @param scriptType The script type.
         * @param template The template.
         * @param paramMap The parameters.
         * @return The converted value.
         */
        protected Object convertValue(final String scriptType, final String template, final Map<String, Object> paramMap) {
            if (StringUtil.isEmpty(template)) {
                return StringUtil.EMPTY;
            }
    
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Nov 28 16:29:12 GMT 2025
    - 7.6K bytes
    - Click Count (0)
  9. guava-testlib/src/com/google/common/collect/testing/testers/Platform.java

     * This class is emulated in GWT.
     *
     * @author Hayward Chan
     */
    @GwtCompatible
    final class Platform {
    
      /** Format the template with args, only supports the placeholder {@code %s}. */
      @FormatMethod
      static String format(String template, Object... args) {
        return String.format(Locale.ROOT, template, args);
      }
    
      /** See {@link ListListIteratorTester} */
      static int listListIteratorTesterNumIterations() {
        return 4;
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Dec 29 17:36:00 GMT 2025
    - 1.3K bytes
    - Click Count (0)
  10. android/guava/src/com/google/common/base/Strings.java

      public static String lenientFormat(
          @Nullable String template, @Nullable Object @Nullable ... args) {
        template = String.valueOf(template); // null -> "null"
    
        if (args == null) {
          args = new Object[] {"(Object[])null"};
        }
    
        // start substituting the arguments into the '%s' placeholders
        StringBuilder builder = new StringBuilder(template.length() + 16 * args.length);
        int templateStart = 0;
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Jan 29 22:14:05 GMT 2026
    - 12.2K bytes
    - Click Count (0)
Back to Top