Giter Club home page Giter Club logo

braze-liquid's Introduction

Notable Growth Liquid Snippets

A collection of helpful Liquid code snippets compiled by Notable Growth. These snippets are intended for use with Braze.

As Braze uses a forked version of Liquid, the code in these snippets may not work with other services that also use Liquid.

Notable Growth is a Braze Alloy partner, we use data, creativity, and empathy in our strategic planning to connect meaningfully with our customers and deliver Notable results.

Arrays

Connected Content

Data

Voucherify Promotion Engine

Localization

  • Transifex - Connected Content GET request to v2.5 of the Transifex API. This API will be deprecated 11/30/2022.

Misc

Personalization

Dates

  • Add Days - Add a specific amount of days to an existing date. Starting date must be converted to seconds first.
  • Format Date - Format a date into ISO 8601.
  • Ordinal Date - Get the ordinal number for a date (e.g 5th, 22nd etc).
  • Calculate Days Remaining - Get the number of days remaining in the current month.

Logic

  • Abort - Abort a campaign based on the value of a variable.
  • Case When - Switch statement based on the values of a variable. Useful for displaying copy based on the language of a user.

Math

  • Compare Negative Numbers - Simple example showing how to handle comparing a negative number in Liquid. This also has an example of casting a string as a number.
  • Random Number - Generate a random number.

braze-liquid's People

Contributors

patricioo1 avatar ericwlange avatar ecogan avatar grifbohm avatar

Stargazers

 avatar Steven Ferrino avatar Brent Dayman avatar Ramses Romero Jr avatar Jimmy Nguyen avatar David O'Reilly avatar Jenn6 avatar  avatar Annika Dunaway avatar

Watchers

 avatar Sean Collins avatar  avatar

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.