as @jekbradbury suggested, gradient-clipping can be defined in a theano-like way:
def clip_grad(v, min, max):
    v.register_hook(lambda g: g.clamp(min, max))
    return v

A demo LSTM implementation with gradient clipping can be found here 502.