Git Product home page Git Product logo

htl-examples's Introduction

htl-examples

AEM HTL examples

AEM compatibility

The package is only compatible with AEM6.3, this because new features are used that are only available in AEM6.3

  • Exporter (sling-models)
  • getInheritedPageProperties() in WCMUsePojo
  • getLanguage() in Page-api

Included examples

Provides an example of a CustomBindingProvider, this if you want generic objects available in HTL

Example on using a Map<> together with HTL

Code sample on using a LinkedList with HTL

Example on using Exporter-annotation with Sling-Models

How to get a request parameter in HTL

Validating HTL-files during build process

Example on using AutoCloseable functionality, no need to close ResourceResolvers in code

Formatting your date-objects in HTL

Formatting numbers in HTL

Example that shows the resolution of resources directly in HTL

Passing in request-attributes to data-sly-resource and data-sly-include

Example of the OSGi annotations, easy way to define OSGi properties. Properties defined in MyServiceConfiguration.java, default config here

Use of a lambda expression that is supported in Java8

Example of a custom Sling-Model implementation, that is picked up from the core components.

Example of using the CompositeValueMap to merge properties of two ValueMaps

Example of a basic healthcheck, that can be executed from the OSGi-console

Shows how to display a healthcheck card in the operations dashboard. To extend the default collection of healthchecks you need to use sling:configCollectionInherit on the /apps/settings/granite/operations/hc node

Example of a custom poller that gets executed based on the information in the cq:PollConfig node.

Common problem when defining a datalayer is that the JS-fragments are in the body, while some of those need to be in the head. This filter is moving JS-fragments from the body into the head.

htl-examples's People

Contributors

feikevisser avatar heervisscher avatar davidjgonzalez avatar

Watchers

James Cloos avatar Olympe KASSA avatar

Forkers

vaibhav26sharma

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.