Code Monkey home page Code Monkey logo

soykit's Introduction

SoyKit

SoyKit runtime library

soykit's People

Contributors

segabor avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar

soykit's Issues

Create Swift types for Soy

Create Swift types for Soy. Below table describes Java types.

Template Type Java Type
Null (SoyData) null
Boolean boolean
Integer int
Float double
String String
List SoyListData
Map SoyMapData

Populate output via Appendable protocl

Currenty, Closure Templates compiler generates code that returns assembled output.
Replace it with a robust solution introducing Appendable protocol like below,

protocol Appendable {
    func append(soyValue: SoyValue)
    func append(safeContent: SanitizedContent)
    func append(string: String)
}

So renderer signature will be changed to

(Appendable, [String:SoyValue], [String:SoyValue])

SoyValue should conform to Swift BinaryInteger protocol

/Users/segabor/Workspace/SoyFeatures/Sources/SoyFeatures/features_swift.swift:583:43: error: referencing operator function '<' on 'BinaryInteger' requires that 'SoyValue' conform to 'BinaryInteger'
            if studentData278.get("year") < 2000 {
                                          ^
Swift.BinaryInteger:1:11: note: where 'Self' = 'SoyValue'
extension BinaryInteger {

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.