Skip to content
This repository has been archived by the owner on Apr 20, 2024. It is now read-only.

Commit

Permalink
Merge pull request #99 from nodes-vapor/feature/add-numberformattag-init
Browse files Browse the repository at this point in the history
Add public init for NumberFormatTag
  • Loading branch information
siemensikkema authored Aug 26, 2019
2 parents 84b6147 + a005cab commit 2090c3e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Sources/Sugar/Helpers/NumberFormatTag.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ import Leaf
/// - number: Double
/// - decimals: Int (default: 2 decimals)
public final class NumberFormatTag: TagRenderer {
public init() {}

public func render(tag: TagContext) throws -> Future<TemplateData> {

guard let number = tag.parameters[safe: 0]?.double else {
Expand Down

0 comments on commit 2090c3e

Please sign in to comment.